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

TOP

返回列表