Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner scan = new Scanner(System.in);
- System.out.println("inserire un numero r");
- int r = scan.nextInt();
- System.out.println("inserire un numero t");
- int t = scan.nextInt();
- System.out.println("inserire un numero p");
- int p = scan.nextInt();
- if ((r > t) && (r > p))
- System.out.println(" il numero maggiore è " + r);
- if ((t > r) && (t > p))
- System.out.println(" il numero maggiore è " + t);
- if ((p > t) && (p > r))
- System.out.println(" il numero maggiore è " + p);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement