import java.util.Scanner; public class Main { public static void main(String[] args) { int a,b,c; Scanner S = new Scanner(System.in); a = S.nextInt(); b = S.nextInt(); c = S.nextInt(); if(a>b) { if(a>c) System.out.printf("%d",a); } else if(b>c) System.out.printf("%d",b); else System.out.printf("%d",c); } }
解题思路:
注意事项:
参考代码:
0.0分
0 人评分
printf基础练习2 (C语言代码)浏览:617 |
1157题解浏览:711 |
A+B for Input-Output Practice (C语言代码)浏览:458 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:1067 |
简单的a+b (C语言代码)浏览:943 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:486 |
数组输出 (C语言代码)浏览:700 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:441 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:635 |
数列有序 (C语言代码)浏览:930 |