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

TOP

返回列表