当前位置:网站首页>Chapter five
Chapter five
2020-11-08 20:18:00 【Half a spoon of coffee】
1.# ··· #include<stdio.h> #define MIn_PER_HOU 60 int main(int argc,char*argv[]){ int hours, minutes, input; printf("CONVERT MINUTES TO HOURS!\n"); printf("PLEASE INPUT THE NUMBER OF MINUTES:"); scanf("%d", &input); while (input > 0) { hours = input / MIn_PER_HOU; minutes = input % MIn_PER_HOU; printf("CONVERT TO %d HOUR AND %d MINUTES\n", hours, minutes); printf("PLEASE CONTINUE INPUT THE NUMBER OF MINUTES:"); scanf("%D", &input); } printf("PROGRAM EXIT!\n"); }
#include<stdio.h>
void main() { int a, b; printf(" Input number :"); scanf("%d", &a); b = a; while (b <= a + 10) { printf("%d\n", b); b++; }
}
#include<stdio.h>
void main() { int b; printf(" Enter the number of days :"); scanf("%d", &b); while (b >0) { printf("%d days are %d weeks, %d days.\n", b,b/7,b%7); printf(" Enter the number of days :"); scanf("%d", &b); }
}
#include<stdio.h>
void main() { float b; printf(" Enter the height :"); scanf("%f", &b); while (b > 0) { printf("%.0fcm =%.2f feet,%.2f inches\n", b, b / 30.48, b / 2.54); printf(" Enter the height :"); scanf("%d", &b); }
}
版权声明
本文为[Half a spoon of coffee]所创,转载请带上原文链接,感谢
边栏推荐
- Your random IO hard disk
- VirtualBox install centos7
- Flink series (0) -- Preparation (basic stream processing)
- I used Python to find out all the people who deleted my wechat and deleted them automatically
- Summary: in October, more investment management strategies have come to the new overseas defi project!
- RSA非对称加密算法
- Countdownlatch explodes instantly! Based on AQS, why can cyclicbarrier be so popular?
- iptables从入门到掌握
- To introduce to you, this is my flow chart software—— draw.io
- 实验
猜你喜欢

Swagger介绍和应用

后缀表达式转中缀表达式

How much disk IO does a byte of read file actually take place?
![[elastic search technology sharing] - ten pictures to show you the principle of ES! Understand why to say: ES is quasi real time!](/img/dd/498ac0036c87037ea91debe72c1883.jpg)
[elastic search technology sharing] - ten pictures to show you the principle of ES! Understand why to say: ES is quasi real time!

精通高并发与多线程,却不会用ThreadLocal?

快来看看!AQS 和 CountDownLatch 有怎么样的关系?

实验

Flink系列(0)——准备篇(流处理基础)

微信小程序相关

解决go get下载包失败问题
随机推荐
使用基于GAN的过采样技术提高非平衡COVID-19死亡率预测的模型准确性
Infix expression to suffix expression
Django's simple user system (3)
How to deploy pytorch lightning model to production
SQL 速查
Simulink中封装子系统
Iptables from introduction to mastery
接口测试用例思路总结
给大家介绍下,这是我的流程图软件 —— draw.io
Django之简易用户系统(3)
Creating a text cloud or label cloud in Python
Classical dynamic programming: longest common subsequence
CountDownLatch 瞬间炸裂!同基于 AQS,凭什么 CyclicBarrier 可以这么秀?
寻找性能更优秀的动态 Getter 和 Setter 方案
CountDownLatch 瞬间炸裂!同基于 AQS,凭什么 CyclicBarrier 可以这么秀?
SQL quick query
200人的程序员面试经验,都在这里了
Array acquaintance
C + + opencv4.3 sift matching
Regular backup of WordPress website program and database to qiniu cloud