Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package miriana;
- import java.util.Scanner;
- public class OrdinaTreValori {
- public static void main(String[] args) {
- Scanner input= new Scanner (System.in);
- System.out.println("Inserisci tre valori: ");
- int uno, due, tre;
- uno = input.nextInt();
- due = input.nextInt();
- tre= input.nextInt();
- if (uno>due && uno>tre)
- System.out.println("Risultato: " +due+tre+uno);
- else if (due>uno && due>tre)
- System.out.println("Risultato: " +uno+tre+due);
- else if (tre>uno && tre>due)
- System.out.println("Risultato: " +uno+due+tre);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement