题目
c语言中求abc三个数中的最大数
提问时间:2020-12-11
答案
这应该不难,属于入门问题:
#include "stdio.h"
int main() {
x05int a, b, c, max;
x05printf("输入a,b,c的值: a=");
x05scanf("%d", &a);
x05printf("b=");
x05max = a;
x05scanf("%d", &b);
x05if(max < b) {
x05x05max = b;
x05}
x05printf("c=");
x05scanf("%d", &c);
x05if(max < c) {
x05x05max = c;
x05}
x05printf("最大的值为 %d ", max);
x05return 0;
}
#include "stdio.h"
int main() {
x05int a, b, c, max;
x05printf("输入a,b,c的值: a=");
x05scanf("%d", &a);
x05printf("b=");
x05max = a;
x05scanf("%d", &b);
x05if(max < b) {
x05x05max = b;
x05}
x05printf("c=");
x05scanf("%d", &c);
x05if(max < c) {
x05x05max = c;
x05}
x05printf("最大的值为 %d ", max);
x05return 0;
}
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1经过几代人的执著追求,数十年的坚持不懈,锲而不舍的奋斗 梦想变成美好的现实
- 2比15少20%的数是( );( )比25多15%
- 3· ·
- 4草什么,花什么,鸟什么,填动词
- 5指南针和指北针的区别和使用上优劣区分
- 6某旅游团有72人,他们到博物馆参观展览 博物馆门前有一个牌子:票价每张8元,团体50人或50人以上优惠,每张6元 请问怎样买票节省?可省多少钱?
- 7比54多它的9分之5的数是多少,方程
- 8求翻译::我是来自于东方二中,我的爱好是画画,我喜欢打篮球,等等.
- 9This shirt is nice.
- 10已知定义在区间(-1,1)上的偶函数f(x),在(0,1)上为增函数,f(a-2)-f(4-a2)<0,求实数a的取值范围.
热门考点
- 1That she was able to come made us very happy为什么要加个that
- 2利用高一物理自由落体运动知识解练习题,带公式.
- 3英语翻译
- 4piuma-feather是什么意思
- 5你从《弟子规》中学到了什么?作文250字
- 6已知sina-cosa=1/5,兀/4<a<兀/2,求tan(兀/4+a)的值.还有sin2a=24/25?是否即可.
- 71.如果火箭飞行的时间一定,飞行的路程和速度成正比例.( )
- 8(500-x)*1.5-13.5x=705怎么解(过程)
- 9求翻译:I stay at home and listen to music.
- 10Discuss the relationship between ethics and law in negotiation