编写一个程序,运行时输入a,b,c,三个值,输出其中最大值

2024年09月07日 阅读 (54)

时间限制: 1 Sec 内存限制: 128 MB

编写一个程序,运行时输入a,b,c,三个值,输出其中最大值(1)

题目描述

编写一个程序,输入a、b、c三个值,输出其中最大值。

输入

一行数组,分别为a b c

输出

a b c其中最大的数

样例输入

10 20 30

样例输出

30
编写一个程序,运行时输入a,b,c,三个值,输出其中最大值(2)

答案:

#includebits/stdc++.husing namespace std;int main{ int a,b,c; cinabc; coutmax,max); return 0;}

郑重声明:玄微运势的内容来自于对中国传统文化的解读,对于未来的预测仅供参考。