当前位置:网站首页>Write a 2-minute countdown.
Write a 2-minute countdown.
2022-07-03 14:37:00 【Ah Jiong of spade K】
#include <stdio.h>
#include <stdlib.h>
#include<windows.h>
int main()
{ int a;
a=120;
while(a>=0)
{
system("cls");
printf("%d:%d",a/60,a%60);
a=a-1;
Sleep(1000);
}
return 0;
}
Experience : The idea of solving problems is very important , Minutes is equivalent to 60 Base number , The first half is the integer part of the division , The second half is remainder , It can be extended to other decimal countdown .
边栏推荐
- Tonybot humanoid robot checks the port and corresponds to port 0701
- 光猫超级账号密码、宽带账号密码 获取
- Statistical capital consonants
- 556. The next larger element III: simple construction simulation questions
- Luogu p5536 [xr-3] core city solution
- tonybot 人形机器人 查看端口并对应端口 0701
- Protobuf and grpc
- Tonybot humanoid robot infrared remote control play 0630
- Thread.sleep和TimeUnit.SECONDS.sleep的区别
- Paper sharing: generating playful palettes from images
猜你喜欢

tonybot 人形機器人 紅外遙控玩法 0630

Creation of data table of Doris' learning notes
![洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解](/img/89/da1a3a38e02671628f385de0f30369.png)
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解

puzzle(016.4)多米诺效应

556. The next larger element III

一文了解微分段应用场景与实现机制

tonybot 人形机器人 首次开机 0630
![洛谷P4047 [JSOI2010]部落划分 题解](/img/7f/3fab3e94abef3da1f5652db35361df.png)
洛谷P4047 [JSOI2010]部落划分 题解

Detailed explanation of four modes of distributed transaction (Seata)

NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
随机推荐
使用并行可微模拟加速策略学习
Pyqt interface production (login + jump page)
洛谷P3065 [USACO12DEC]First! G 题解
Zzuli:1056 lucky numbers
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
Understand the application scenario and implementation mechanism of differential segment
Zzuli:1044 failure rate
Selective sorting
tonybot 人形机器人 红外遥控玩法 0630
Zzuli:1054 monkeys eat peaches
NPM install is stuck with various strange errors of node NPY
7-19 check denomination (solve binary linear equation)
Common commands for getting started with mongodb database
How to query the baby category of tmall on Taobao
添加Zabbix计算类型项目Calculated items
Zzuli: sum of 1051 square roots
7-9 one way in, two ways out (25 points)
Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million