**[x]**"The program should display the numbers in descending order."

```
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
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());
int first = 0;
int second = 0;
int third = 0;
if (a >= b && a >= c) {
first = a;
} else if (b >= a && b >= c) {
first = b;
} else if (c >= a && a >= b) {
first = c;
}
if (first == a) {
if (b >= c) {
second = b;
third = c;
} else if (c >= b) {
second = c;
third = b;
}
} else if (first == b) {
if (a >= c) {
second = a;
third = c;
} else if (c >= a) {
second = c;
third = a;
}
} else if (first == c) {
if (b >= a) {
second = b;
third = a;
} else if (a >= b) {
second = a;
third = b;
}
}
System.out.println(third + " " + second + " " + first);
}
}
```

package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
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());
int first = 0;
int second = 0;
int third = 0;
if (a >= b && a >= c) {
first = a;
} else if (b >= a && b >= c) {
first = b;
} else if (c >= a && a >= b) {
first = c;
}
if (first == a) {
if (b >= c) {
second = b;
third = c;
} else if (c >= b) {
second = c;
third = b;
}
} else if (first == b) {
if (a >= c) {
second = a;
third = c;
} else if (c >= a) {
second = c;
third = a;
}
} else if (first == c) {
if (b >= a) {
second = b;
third = a;
} else if (a >= b) {
second = a;
third = b;
}
}
System.out.println(third + " " + second + " " + first);
}
}