- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
- for (int i=1;i<65;i++)
- {
- if(i>=6 && i<=10)
- cout<<"□□□□□□□□□□"<<endl;
-
- if(i>=11 && i<=15)
- cout<<"■□□ □□□□□□□"<<endl;
-
- if(i>=16 && i<=20)
- cout<<"■■□□□□□□□□"<<endl;
-
- if(i>=21 && i<=25)
- cout<<"■■■□□□□□□□"<<endl;
-
- if(i>=26 && i<=30)
- cout<<"□□■■■□□□□□"<<endl;
-
- if(i>=31 && i<=35)
- cout<<"□□□■■■□□□□"<<endl;
-
- if(i>=36 && i<=40)
- cout<<"□□□□■■■□□□"<<endl;
-
- if(i>=41 && i<=45)
- cout<<"□□□□□■■■□□"<<endl;
-
- if(i>=46 && i<=50)
- cout<<"□□□□□□■■■□"<<endl;
-
- if(i>=51 && i<=55)
- cout<<"□□□□□□□■■■"<<endl;
-
- if(i>=56 && i<=60)
- cout<<"□□□□□□□□■■"<<endl;
-
- if(i>=61 && i<=65)
- cout<<"□□□□□□□□□■"<<endl;
-
- system("cls");
- }
- goto re;
-
- system("pause");
- return 0;
- }
複製代碼 |