- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
-
- int tmp;
-
- for(int i=1;i<=260;i++)
- {
- tmp = i;
-
- if(tmp>=1 && tmp<=20)
- cout<<"謝"<<endl;
-
- if(tmp>=21 && tmp<=40)
- cout<<" 謝"<<endl;
-
- if(tmp>=41 && tmp<=60)
- cout<<" 光"<<endl;
-
- if(tmp>=61 && tmp<=80)
- cout<<" 臨"<<endl;
-
- if(tmp>=81 && tmp<=100)
- cout<<"謝"<<endl;
-
- if(tmp>=101 && tmp<=120)
- cout<<"謝謝"<<endl;
-
- if(tmp>=121 && tmp<=140)
- cout<<"謝謝光"<<endl;
-
- if(tmp>=141 && tmp<=160)
- cout<<"謝謝光臨"<<endl;
-
- if(tmp>=161 && tmp<=180)
- cout<<" "<<endl;
-
- if(tmp>=181 && tmp<=200)
- cout<<"謝謝光臨"<<endl;
-
- if(tmp>=201 && tmp<=220)
- cout<<" "<<endl;
-
- if(tmp>=221 && tmp<=240)
- cout<<"謝謝光臨"<<endl;
-
- if(tmp>=241 && tmp<=260)
- cout<<" "<<endl;
- system("cls");
- }
- goto re;
-
- system("pause");
- return 0;
- }
複製代碼 |