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

TOP

返回列表