- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
-
-
- allre:
- for(int i=1;i<=220;i++)
- {
- if(i>=1 and i<11)
- cout<<"歡"<<endl;
- if(i>=11 and i<21)
- cout<<" 迎"<<endl;
- if(i>=21 and i<31)
- cout<<" 光"<<endl;
- if(i>=31 and i<41)
- cout<<" 臨"<<endl;
- if(i>=41 and i<51)
- cout<<"◇"<<endl;
- if(i>=51 and i<61)
- cout<<"◇◆"<<endl;
- if(i>=61 and i<71)
- cout<<"◇◆◇"<<endl;
- if(i>=71 and i<81)
- cout<<"◇◆◇歡"<<endl;
- if(i>=81 and i<91)
- cout<<"◇◆◇歡迎"<<endl;
- if(i>=91 and i<101)
- cout<<"◇◆◇歡迎光"<<endl;
- if(i>=101 and i<111)
- cout<<"◇◆◇歡迎光臨◇"<<endl;
- if(i>=111 and i<121)
- cout<<"◇◆◇歡迎光臨◇◆"<<endl;
- if(i>=121 and i<131)
- cout<<"◇◆◇歡迎光臨◇◆◇"<<endl;
- if(i>=131 and i<141)
- cout<<"◆"<<endl;
- if(i>=141 and i<151)
- cout<<"◆◇"<<endl;
- if(i>=151 and i<161)
- cout<<"◆◇◆"<<endl;
- if(i>=161 and i<171)
- cout<<"◆◇◆歡"<<endl;
- if(i>=171 and i<181)
- cout<<"◆◇◆歡迎"<<endl;
- if(i>=181 and i<191)
- cout<<"◆◇◆歡迎光"<<endl;
- if(i>=191 and i<201)
- cout<<"◆◇◆歡迎光臨◆"<<endl;
- if(i>=201 and i<211)
- cout<<"◆◇◆歡迎光臨◆◇◆"<<endl;
- if(i>=211 and i<221)
- cout<<"◆◇◆歡迎光臨◆◇◆"<<endl;
-
- system("cls");
- }
- for(int j=0;j<=100;j++)
- {
- if(j%2==0)
- cout<<"☆★☆ 歡迎光臨 ☆★☆"<<endl;
- else
- cout<<"★☆★ 歡迎光臨 ★☆★"<<endl;
- system("cls");
-
- }
- goto allre;
-
-
-
- system("pause");
- return 0;
- }
複製代碼 |