倒计时

#include <bits/stdc++.h>
#include<windows.h>
int main()
{
    int a;
    a=10;
    while(a>=0)
    {
        system("cls");
        printf("%d",a);
        Sleep(1000);
        a=a-1;
    }
return 0;
}

posted @ 2019-07-16 22:24  Cathycat  阅读(89)  评论(0编辑  收藏  举报