...突然想到这个作业还没写!无聊写下分享下!网站大多是while循环的。[mw_shl_code=c,true]#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int a,b=0,c,d;
for(a=1;a>=0;a--)
for(b=59;b>=0;b--)
{
if(b>9)
printf("%d:%d\n",a,b);
else
printf("%d:0%d\n",a,b);
_sleep(1000);
system("cls");
}
system("pause");
return 0;
}[/mw_shl_code]
|