考试
1970-01-01 08:00:00

【简答题】 编写一个程序。从键盘输入3个整数,输出其中最大数

题目描述

【简答题】 编写一个程序。从键盘输入3个整数,输出其中最大数。

答案解析

#include void main() { int a,b,c,max; printf(“Please input 3 integers:/n”); scanf(“%d%d%d”,&a,&b,&c); max=a; if(b>a)max=b; if(c>x)max=c; printf(“Max=%d”,max); }

#include void main() { int a,b,c,max; printf(“Please input 3 integers:/n”); scanf(“%d%d%d”,&a,&b,&c); max=a; if(b>a)max=b; if(c>x)max=c; printf(“Max=%d”,max); }

加载中...
AI正在思考中,请稍候...