|
我的思路;
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int a=2,b=0;
while (b>=0)
{
if (10>b)
printf("%d:0%d",a,b);
else
printf("%d:%d",a,b);
b--;
if (b<0)
{
if(a!=0)
a--;
b=59;
}
Sleep(1000);
system("cls");
}
system("pause");
return 0;
} |
|