返回列表 發帖
  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<=160; 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.     } cout<<"快";
  22.       for(int i=1; i<=j; i++)
  23.       {
  24.         cout<<" ";      
  25.     }cout<<"樂";
  26.     system("cls");
  27. }
  28.     goto re;
  29.     system("pause");
  30.     return 0;
  31. }
複製代碼

TOP

返回列表