返回列表 發帖
  1. #include<iostream>          //☆★◇◆□■▽▼㊣℅¯>﹤㏒
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a;
  7.     cout<<"請輸入倍率"<<endl;
  8.     cin>>a;                                                    //alt+41405=■,alt+41404=□;
  9. re:  
  10.      int tmp;
  11.      for(int i=1; i<= 110*a; i++)
  12.      {
  13.          tmp =i/a;  
  14.      if(tmp>=1 && tmp<=10)
  15.      cout<<"▽歡▽"<<endl;
  16.      if(tmp>=11 && tmp<=20)
  17.      cout<<"▽  迎▽"<<endl;        
  18.      if(tmp>=21 && tmp<=30)
  19.      cout<<"▽    光▽"<<endl;        
  20.      if(tmp>=31 && tmp<=40)        
  21.      cout<<"▽      臨▽"<<endl;        
  22.      if(tmp>=41 && tmp<=50)
  23.      cout<<"▽歡▽"<<endl;        
  24.      if(tmp>=51 && tmp<=60)
  25.      cout<<"▽歡迎▽"<<endl;        
  26.      if(tmp>=61 && tmp<=70)
  27.      cout<<"▽歡迎光▽"<<endl;      
  28.      if(tmp>=71 && tmp<=80)
  29.      cout<<"▽歡迎光迎▽"<<endl;        
  30.      if(tmp>=81 && tmp<=100)
  31.      cout<<" "<<endl;
  32.      if(tmp>=101 && tmp<=110)
  33.      cout<<"▽歡迎光迎▽"<<endl;
  34.     system("cls");
  35. }                                                   
  36. goto re;
  37.   system("pause");
  38. return 0;
  39. }
複製代碼

TOP

返回列表