#41526: _c++


yp11351280@yphs.tp.edu.tw (810-43韓睿哲)


需使用雙重for。

  int a;
  cin>>a;
  for(int i=1;i<=a;i++){
    for(int j=1;j<=i;j++){
        cout<<"*";
    }
    cout<<endl;
  }