解题思路:
注意事项:
参考代码:
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double aa = in.nextInt();
double bb = in.nextInt();
double cc = in.nextInt();
double max = aa;
if (bb>max) {
max=bb;
}
if (cc>max) {
max=cc;
}
System.out.printf("%3.3f",max);
System.out.println();
System.out.printf("%3.3f",max);
}
}
0.0分
0 人评分