- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
- for(int i=1;i<=200;i++)
- {
- if(i<=25)
- cout<<"歡"<<endl;
- if(i>25 && i<=50)
- cout<<"歡迎"<<endl;
- if(i>50 && i<=75)
- cout<<"歡迎光"<<endl;
- if(i>75 && i<=100)
- cout<<"歡迎光臨"<<endl;
- if(i>100 && i<=125)
- cout<<"歡"<<endl;
- if(i>125 && i<=150)
- cout<<" 迎"<<endl;
- if(i>150 && i<=175)
- cout<<" 光"<<endl;
- if(i>175 && i<=200)
- cout<<" 臨"<<endl;
- system("cls");
- }goto re;
- system("pause");
- return 0;
- }
複製代碼 |