- #include<iostream> //☆★◇◆□■▽▼㊣℅¯>﹤㏒
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int a;
- cout<<"請輸入倍率"<<endl;
- cin>>a; //alt+41405=■,alt+41404=□;
- re:
- int tmp;
- for(int i=1; i<= 110*a; i++)
- {
- tmp =i/a;
- if(tmp>=1 && tmp<=10)
- cout<<"▽歡▽"<<endl;
- if(tmp>=11 && tmp<=20)
- cout<<"▽ 迎▽"<<endl;
- if(tmp>=21 && tmp<=30)
- cout<<"▽ 光▽"<<endl;
- if(tmp>=31 && tmp<=40)
- cout<<"▽ 臨▽"<<endl;
- if(tmp>=41 && tmp<=50)
- cout<<"▽歡▽"<<endl;
- if(tmp>=51 && tmp<=60)
- cout<<"▽歡迎▽"<<endl;
- if(tmp>=61 && tmp<=70)
- cout<<"▽歡迎光▽"<<endl;
- if(tmp>=71 && tmp<=80)
- cout<<"▽歡迎光迎▽"<<endl;
- if(tmp>=81 && tmp<=100)
- cout<<" "<<endl;
- if(tmp>=101 && tmp<=110)
- cout<<"▽歡迎光迎▽"<<endl;
- system("cls");
- }
- goto re;
- system("pause");
- return 0;
- }
複製代碼 |