码迷,mamicode.com
首页 > 其他好文 > 详细

倒计时

时间:2019-07-16 22:41:48      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:print   printf   turn   std   its   while   sleep   windows   int   

#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;
}

倒计时

标签:print   printf   turn   std   its   while   sleep   windows   int   

原文地址:https://www.cnblogs.com/Cathycat/p/11197946.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!