Aggiunti file già presenti nell'HD

This commit is contained in:
2022-12-30 14:55:33 +01:00
parent ca573e7cbe
commit eac302e89b
96 changed files with 25577 additions and 0 deletions

View File

@ -0,0 +1,23 @@
import java.util.Scanner;
public class e517 {
public static void main(String[] args) {
double n1, n2, n3, max;
Scanner in = new Scanner(System.in);
System.out.print("Inserisci tre numeri decimali, con i decimali separati da virgola: ");
n1 = in.nextDouble();
n2 = in.nextDouble();
n3 = in.nextDouble();
max = n1;
if(!(n1 > n2 && n1 > n3)) {
if (n2 > n3) {
max = n2;
} else {
max = n3;
}
}
System.out.println(max);
}
}