本帖最後由 蔡依宸 於 2018-11-24 17:22 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
-
- for(int i=1; i<=65; i++)
- {
- if(i>=1 && i<=5)
- cout<<"▽▽▽▽▽▽▽▽▽▽"<<endl;
- 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");
- }
- system("pause");
- return 0;
- }
複製代碼 |