import java.util.Scanner;
public class Main{
public static int compare(int a,int b,int c){
int max=(a>b)?a:b; //三目运算符当括号里面的条件成立时输出a,反之输出b
max=(max>c)?max:c;
return max;
}
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
System.out.print(compare(a, b, c));
}
}
0.0分
0 人评分
不容易系列 (C语言代码)浏览:664 |
简单的a+b (C++语言代码)浏览:853 |
最小公倍数 (C语言代码)浏览:862 |
C语言程序设计教程(第三版)课后习题6.6 (C语言代码)浏览:349 |
1126题解浏览:578 |
杨辉三角 (C语言代码)浏览:484 |
剪刀石头布 (C++代码)浏览:1703 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:946 |
矩阵转置 (C语言代码)浏览:782 |
众数问题 (C语言代码)浏览:667 |