public class Test54 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double max = Double.MIN_VALUE;
double d;
for (int i = 1; i <= 3; i++) {
System.out.println("input number " + i + ":");
d = sc.nextDouble();
if (d > max)
max = d;
}
System.out.println("max number is: " + max);
}
}