当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 【Elasticsearch 技术分享】—— 十张图带大家看懂 ES 原理 !明白为什么说:ES 是准实时的!
- npm install 无响应解决方案
- Part I - Chapter 1 Overview
- 给大家介绍下,这是我的流程图软件 —— draw.io
- Simulink中封装子系统
- Looking for better dynamic getter and setter solutions
- C/C++学习日记:原码、反码和补码
- VirtualBox install centos7
- How to deploy pytorch lightning model to production
- 程序员都应该知道的URI,一文帮你全面了解
猜你喜欢

Simulink中封装子系统

给大家介绍下,这是我的流程图软件 —— draw.io

为什么需要使用API管理平台

Suffix expression to infix expression

Awk implements SQL like join operation

第五章

abp(net core)+easyui+efcore实现仓储管理系统——出库管理之五(五十四)

CMS垃圾收集器

Dynamic relu: Microsoft's refreshing device may be the best relu improvement | ECCV 2020

(O) Analysis of service manager (1) BinderInternal.getContextObject
随机推荐
Implementation of warehouse management system with ABP (net core) + easyUI + efcore
第一部分——第1章概述
Express framework
Infix expression to suffix expression
Mongodb add delete modify query operation
如何将PyTorch Lightning模型部署到生产中
简明 VIM 练级攻略
趣文分享:C 语言和 C++、C# 的区别在什么地方?
使用基于GAN的过采样技术提高非平衡COVID-19死亡率预测的模型准确性
Django's simple user system (3)
选择排序
The interface testing tool eolinker makes post request
Process thread coroutine
Your random IO hard disk
Part I - Chapter 1 Overview
200人的程序员面试经验,都在这里了
动态规划答疑篇
Mongodb database
Flink series (0) -- Preparation (basic stream processing)
微信小程序相关