本帖最后由 sujx 于 2015-8-31 02:07 编辑
[mw_shl_code=c,true]
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
int t,m,s;
t=120;
while(t>=0)
{
m=t/60;
s=t%60;
printf("%d:%02d",m,s);
t--;
Sleep(1000);
system("cls");
}
printf("Time is over!\n");
system("pause");
return 0;
}[/mw_shl_code]
|