返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   re:
  7.   int j=0;
  8.   for(int i=1;i<=100;i++)
  9.   {
  10.           if(i%5==0)
  11.           j++;     
  12.           cout<<"新";
  13.          for(int i=1;i<=j;i++)
  14.           {
  15.                cout<<" ";
  16.                  }   
  17.               cout<<"年";
  18.          for(int i=1;i<=j;i++)
  19.          {
  20.           cout<<" ";
  21.                  }   
  22.           cout<<"快";
  23.          for(int i=1;i<=j;i++)
  24.          {
  25.           cout<<" ";
  26.                  }   
  27.           cout<<"樂";
  28.           system("cls");
  29.   }
  30.   goto re;            
  31.   system("pause");
  32.   return 0;  
  33. }
複製代碼

TOP

返回列表