- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- allre:
- for(int i=1;i<=270;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;
- if(i>=221 and i<231)
- cout<<" ◆◇◆歡迎光臨◆◇◆"<<endl;
- if(i>=231 and i<241)
- cout<<" ◇◆◇歡迎光臨◇◆◇"<<endl;
- if(i>=241 and i<251)
- cout<<" ◆◇◆歡迎光臨◆◇◆"<<endl;
- if(i>=251 and i<261)
- cout<<" ◇◆◇歡迎光臨◇◆◇"<<endl;
- if(i>=261 and i<271)
- cout<<"◆◇◆歡迎光臨◆◇◆"<<endl;
-
- system("cls");
- }
-
-
-
- goto allre;
-
-
-
- system("pause");
- return 0;
- }
複製代碼 |