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

TOP

返回列表