返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     for(int i=1; i<=140; i++)
  8.     {
  9.          if(i>=1 && i<=10)
  10.              cout<<"                    "<<endl;
  11.          if(i>=11 && i<=20)
  12.              cout<<"臨                  "<<endl;
  13.          if(i>=21 && i<=30)
  14.              cout<<"光臨                "<<endl;
  15.          if(i>=31 && i<=40)
  16.              cout<<"迎光臨              "<<endl;
  17.          if(i>=41 && i<=50)
  18.              cout<<"歡迎光臨            "<<endl;
  19.          if(i>=51 && i<=60)
  20.              cout<<"  歡迎光臨          "<<endl;
  21.          if(i>=61 && i<=70)
  22.              cout<<"    歡迎光臨        "<<endl;
  23.          if(i>=71 && i<=80)
  24.              cout<<"      歡迎光臨      "<<endl;
  25.          if(i>=81 && i<=90)
  26.              cout<<"        歡迎光臨    "<<endl;
  27.          if(i>=91 && i<=100)
  28.              cout<<"          歡迎光臨  "<<endl;
  29.          if(i>=101 && i<=110)
  30.              cout<<"            歡迎光臨"<<endl;
  31.          if(i>=111 && i<=120)
  32.              cout<<"              歡迎光"<<endl;
  33.          if(i>=121 && i<=130)
  34.              cout<<"                歡迎"<<endl;
  35.          if(i>=131 && i<=140)
  36.              cout<<"                  歡"<<endl;
  37.          system("cls");
  38.     }
  39.     goto re;
  40.     system("pause");
  41.     return 0;
  42. }
複製代碼

TOP

返回列表