当前位置:网站首页>第五章
第五章
2020-11-08 20:18:00 【半勺咖啡】
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("输入数字:"); scanf("%d", &a); b = a; while (b <= a + 10) { printf("%d\n", b); b++; }
}
#include<stdio.h>
void main() { int b; printf("输入天数:"); scanf("%d", &b); while (b >0) { printf("%d days are %d weeks, %d days.\n", b,b/7,b%7); printf("输入天数:"); scanf("%d", &b); }
}
#include<stdio.h>
void main() { float b; printf("输入身高:"); scanf("%f", &b); while (b > 0) { printf("%.0fcm =%.2f feet,%.2f inches\n", b, b / 30.48, b / 2.54); printf("输入身高:"); scanf("%d", &b); }
}
版权声明
本文为[半勺咖啡]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4741335/blog/4708318
边栏推荐
- 使用基于GAN的过采样技术提高非平衡COVID-19死亡率预测的模型准确性
- Awk implements SQL like join operation
- Why need to use API management platform
- 【Elasticsearch 技术分享】—— 十张图带大家看懂 ES 原理 !明白为什么说:ES 是准实时的!
- 都说程序员钱多空少,程序员真的忙到没时间回信息了吗?
- Countdownlatch explodes instantly! Based on AQS, why can cyclicbarrier be so popular?
- Development and deployment of image classifier application with fastai
- 动态规划设计:最大子数组
- Flink系列(0)——准备篇(流处理基础)
- net.sf.json . jsonobject's format processing of time stamp
猜你喜欢

Dynamic programming: maximum subarray

使用基于GAN的过采样技术提高非平衡COVID-19死亡率预测的模型准确性

The minimum insertion times of palindrome

WordPress网站程序和数据库定时备份到七牛云图文教程

使用Fastai开发和部署图像分类器应用

AI香水来了,你会买吗?

Problem solving templates for subsequence problems in dynamic programming

SQL quick query

C + + opencv4.3 sift matching

第一部分——第1章概述
随机推荐
第一部分——第2章指针操作
c++ opencv4.3 sift匹配
Leetcode 45 jumping game II
Mongodb database
简明 VIM 练级攻略
在Python中创建文字云或标签云
动态规划设计:最大子数组
精通高并发与多线程,却不会用ThreadLocal?
[elastic search technology sharing] - ten pictures to show you the principle of ES! Understand why to say: ES is quasi real time!
Countdownlatch explodes instantly! Based on AQS, why can cyclicbarrier be so popular?
Use markdown
Dynamic ReLU:微软推出提点神器,可能是最好的ReLU改进 | ECCV 2020
Django's simple user system (3)
How to deploy pytorch lightning model to production
Part 1 - Chapter 2 pointer operation
Deep copy
Dynamic ReLU:微软推出提点神器,可能是最好的ReLU改进 | ECCV 2020
SQL quick query
Server side resolution of lengthfieldbasedframedecoder of GetBytes
后缀表达式转中缀表达式