返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     int i, j;
  6.     for(i=1; i<=4; i+=1)
  7.     {
  8.         for(j=2; j<=i; j+=1)
  9.         {
  10.             cout<<" ";
  11.         }
  12.         for(j=1; j<=10; j+=1)
  13.         {
  14.             cout<<"*";
  15.         }
  16.         cout<<"\n";            
  17.     }
  18.    
  19.     system("pause");
  20.     return 0;
  21. }
複製代碼

TOP

返回列表