本帖最后由 吕十五 于 2020-2-11 01:25 编辑
- #include <stdio.h>
- #include <stdlib.h>
- #include <windows.h>
- int main()
- {
- int a,b;
- system("color 0a");
- a=60;b=2;
- while(a>=0&&b>=0)
- {
- a=a-1;
- Sleep(1000);
- b=b-1;
- Sleep(600000);
- system("cls");
-
- printf("%d:%d",b,a);
- }
-
- system("pause");
-
- return 0;
- }
复制代码 |