- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
- for(int i=1; i<=140; i++)
- {
- if(i>=1 && i<=10)
- cout<<"□□□□□□□□□□"<<endl;
- if(i>=11 && i<=20)
- cout<<"臨□□□□□□□□□"<<endl;
- if(i>=21 && i<=30)
- cout<<"光臨□□□□□□□□"<<endl;
- if(i>=31 && i<=40)
- cout<<"迎光臨□□□□□□□"<<endl;
- if(i>=41 && i<=50)
- cout<<"歡迎光臨□□□□□□"<<endl;
- if(i>=51 && i<=60)
- cout<<"□歡迎光臨□□□□□"<<endl;
- if(i>=61 && i<=70)
- cout<<"□□歡迎光臨□□□□"<<endl;
- if(i>=71 && i<=80)
- cout<<"□□□□歡迎光臨□□"<<endl;
- if(i>=81 && i<=90)
- cout<<"□□□□□歡迎光臨□"<<endl;
- if(i>=91 && i<=100)
- cout<<"□□□□□□歡迎光臨"<<endl;
- if(i>=101 && i<=110)
- cout<<"□□□□□□□歡迎光"<<endl;
- if(i>=111 && i<=120)
- cout<<"□□□□□□□□歡迎"<<endl;
- if(i>=121 && i<=130)
- cout<<"□□□□□□□□□臨"<<endl;
- system("cls");
- }
- goto re;
- system("pause");
- return 0;
- }
複製代碼 |