求最小数
来源:互联网 发布:ros mac禁止 编辑:程序博客网 时间:2024/06/06 12:42
求最小数(Output the minimum)
描述
每次给定3个数(均可用int表示),要求找出3个数里的最小的一个,并输出最小的数。
Input three integers and output the minimum
Input three integers and output the minimum
输入
a b c 三个数用空格隔开
Input three integers .
Input three integers .
输出
a b c中最小的一个数
Output the minimum .
Output the minimum .
输入样例
5 3 98
输出样例
3
来源
#include<stdio.h>//主函数int main(){ int a,b,c,t; scanf("%d %d %d",&a,&b,&c); if(a<b) { t=a; }else t=b; if(t<c) { printf("%d",t); }else printf("%d",c); //输出回车 printf("\n");}
0 0
- 求最小数
- 求最大最小数
- 求最小数
- 求最大最小数
- 求最小不重复数
- hdu1394求最小逆序数
- 求绝对值最小的数
- 1483求最大最小数
- 求绝对值最小的数
- 求绝对值最小的数
- 求绝对值最小的数
- hdu1394 求最小逆序数
- 求最大数与最小数
- 三个数求最大数、最小数、中间数
- 三个数求最大数、最小数、中间数
- 编程之美求最大最小数
- 题目1483:求最大最小数
- 求K个最小的数
- 4.线性分类器(二)
- "ORA-00942: 表或视图不存在 "的原因和解决方法(非常好)
- STM8 IO口的位操作
- PS学习之路——快捷键篇
- [Ubuntu]搭建ftp服务器
- 求最小数
- [Ubuntu]不同用户下环境变量问题
- 洛谷 P2365 任务安排
- 创建型设计模式
- Linux创建socket
- apache2 无法启动
- SLAM代码(三维重建)
- C++之一:快速排序运用
- [Firefox]最简单的网页导出pdf方法