返回列表 發帖
本帖最後由 蔡忻霓 於 2020-1-31 20:25 編輯

[code]#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
    int speed=50;
    re:
    for(int i=1; i<=13; i++)
    {
        if(i==1)
            cout<<"□□□□□□□□□□"<<endl;
        if(i==2)
            cout<<"■□□□□□□□□□"<<endl;
        if(i==3)
            cout<<"■■□□□□□□□□"<<endl;
        if(i==4)
            cout<<"■■■□□□□□□□"<<endl;
        if(i==5)
            cout<<"□■■■□□□□□□"<<endl;
        if(i==6)
            cout<<"□□■■■□□□□□"<<endl;
        if(i==7)
            cout<<"□□□■■■□□□□"<<endl;
        if(i==8)
            cout<<"□□□□■■■□□□"<<endl;
        if(i==9)
            cout<<"□□□□□■■■□□"<<endl;
        if(i==10)
            cout<<"□□□□□□■■■□"<<endl;
        if(i==11)
            cout<<"□□□□□□□■■■"<<endl;
        if(i==12)
            cout<<"□□□□□□□□■■"<<endl;
        if(i==13)
            cout<<"□□□□□□□□□■"<<endl;
        _sleep()
        system("cls");
    }
    system("pause");
    goto re;
    return 0;
[code]

TOP

返回列表