当前位置:网站首页>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 .
边栏推荐
- Convert string to decimal integer
- Tonybot humanoid robot infrared remote control play 0630
- Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
- Some concepts about agile
- 556. The next larger element III: simple construction simulation questions
- adc128s022 ADC verilog设计实现
- Time conversion ()
- Zhejiang University Edition "C language programming (4th Edition)" topic set reference ideas set
- pyQt界面制作(登录+跳转页面)
- Address book sorting
猜你喜欢

tonybot 人形机器人 红外遥控玩法 0630

puzzle(016.4)多米诺效应

论文分享:Generating Playful Palettes from Images

Detailed explanation of four modes of distributed transaction (Seata)

Four data flows and cases of grpc

Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things

Puzzle (016.3) is inextricably linked

Code writing and playing method of tonybot humanoid robot at fixed distance

ShowMeBug入驻腾讯会议,开启专业级技术面试时代

X86 assembly language - Notes from real mode to protected mode
随机推荐
Code writing and playing method of tonybot humanoid robot at fixed distance
Understand the application scenario and implementation mechanism of differential segment
Some concepts about agile
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
556. 下一个更大元素 III : 简单构造模拟题
X86 assembly language - Notes from real mode to protected mode
Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
基因家族特征分析 - 染色体定位分析
Zzuli:1046 product of odd numbers
Protobuf and grpc
Get permissions dynamically
Mongodb index
Doris学习笔记之数据表的创建
Creation of data table of Doris' learning notes
Thread. Sleep and timeunit SECONDS. The difference between sleep
Zzuli:1045 numerical statistics
Sendmail can't send mail and it's too slow to send. Solve it
7-10 stack of hats (25 points) (C language solution)
7-22 tortoise and rabbit race (result oriented)
Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder