返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    
  7.      
  8.     allre:
  9.     for(int i=1;i<=220;i++)
  10.     {
  11.          if(i>=1 and i<11)
  12.              cout<<"歡"<<endl;
  13.          if(i>=11 and i<21)
  14.              cout<<"  迎"<<endl;
  15.          if(i>=21 and i<31)
  16.              cout<<"    光"<<endl;
  17.          if(i>=31 and i<41)
  18.              cout<<"      臨"<<endl;
  19.          if(i>=41 and i<51)
  20.              cout<<"◇"<<endl;
  21.          if(i>=51 and i<61)
  22.              cout<<"◇◆"<<endl;
  23.          if(i>=61 and i<71)
  24.              cout<<"◇◆◇"<<endl;
  25.          if(i>=71 and i<81)
  26.              cout<<"◇◆◇歡"<<endl;
  27.          if(i>=81 and i<91)
  28.              cout<<"◇◆◇歡迎"<<endl;
  29.          if(i>=91 and i<101)
  30.              cout<<"◇◆◇歡迎光"<<endl;
  31.          if(i>=101 and i<111)
  32.              cout<<"◇◆◇歡迎光臨◇"<<endl;
  33.          if(i>=111 and i<121)
  34.              cout<<"◇◆◇歡迎光臨◇◆"<<endl;
  35.          if(i>=121 and i<131)
  36.              cout<<"◇◆◇歡迎光臨◇◆◇"<<endl;
  37.          if(i>=131 and i<141)
  38.              cout<<"◆"<<endl;
  39.          if(i>=141 and i<151)
  40.              cout<<"◆◇"<<endl;
  41.          if(i>=151 and i<161)
  42.              cout<<"◆◇◆"<<endl;
  43.          if(i>=161 and i<171)
  44.              cout<<"◆◇◆歡"<<endl;
  45.          if(i>=171 and i<181)
  46.              cout<<"◆◇◆歡迎"<<endl;
  47.          if(i>=181 and i<191)
  48.              cout<<"◆◇◆歡迎光"<<endl;
  49.          if(i>=191 and i<201)
  50.              cout<<"◆◇◆歡迎光臨◆"<<endl;
  51.          if(i>=201 and i<211)
  52.              cout<<"◆◇◆歡迎光臨◆◇◆"<<endl;
  53.          if(i>=211 and i<221)
  54.              cout<<"◆◇◆歡迎光臨◆◇◆"<<endl;
  55.          
  56.          system("cls");
  57.     }
  58.     for(int j=0;j<=100;j++)
  59.     {
  60.         if(j%2==0)
  61.             cout<<"☆★☆ 歡迎光臨 ☆★☆"<<endl;
  62.         else
  63.             cout<<"★☆★ 歡迎光臨 ★☆★"<<endl;
  64.         system("cls");
  65.             
  66.     }
  67.     goto allre;
  68.    
  69.    
  70.    
  71.     system("pause");
  72.     return 0;   
  73. }
複製代碼

TOP

返回列表