import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here /* Use the keyboard to enter three numbers, and display them in descending order. The displayed numbers must be separated by spaces. Requirements: 1. The program should read the numbers from the keyboard. 2. The program should display numbers on the screen. 3. The displayed numbers must be separated by spaces. 4. The program should display the numbers in descending order. */ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine()); int b = Integer.parseInt(reader.readLine()); int c = Integer.parseInt(reader.readLine()); /* if(a>b) { if(a>c) { if(b>c) System.out.print(a+" "+b+" "+c); else System.out.print(a+" "+c+" "+b); } else { if(b>c) System.out.print(c+" "+ b+" "+ a); else System.out.print(c+" "+a+" "+b); } } else { if(a>c) System.out.print(b+" "+a+" "+ c); else System.out.print(b+" "+c+" "+a); } */ if(a>b) { if(b>c) System.out.print(a+" "+b+" "+c); else System.out.print(a+" "+c+" "+b); } if(b>c) { if(a>c) System.out.print(b+" "+a+" "+c); else System.out.print(b+" "+c+" "+a); } if(c>a) { if(c>a) System.out.print(c+" "+ a+ " "+ b); else System.out.print(c +" "+b+" "+a); } } }