返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     for(int i=1;i<=110;i++)
  8.     {
  9.          if(i>=1 and i<11)
  10.              cout<<"歡"<<endl;
  11.          if(i>=11 and i<21)
  12.              cout<<"  迎"<<endl;
  13.          if(i>=21 and i<31)
  14.              cout<<"    光"<<endl;
  15.          if(i>=31 and i<41)
  16.              cout<<"      臨"<<endl;
  17.          if(i>=71 and i<81)
  18.              cout<<"歡"<<endl;
  19.          if(i>=81 and i<91)
  20.              cout<<"歡迎"<<endl;
  21.          if(i>=91 and i<101)
  22.              cout<<"歡迎光"<<endl;
  23.          if(i>=101 and i<111)
  24.              cout<<"歡迎光臨"<<endl;
  25.          system("cls");
  26.     }
  27.     for(int j=0;j<=100;j++)
  28.     {
  29.         if(j%2==0)
  30.             cout<<"li   歡迎光臨 angh"<<endl;
  31.         else
  32.             cout<<"angh 歡迎光臨 li"<<endl;
  33.         system("cls");
  34.     }
  35.     goto re;
  36.     system("pause");
  37.     return 0;   
  38. }
複製代碼
http://fs-old.mis.kuas.edu.tw/~s1102137106/music/

TOP

返回列表