Failed task --> The program should display the numbers in descending order.
But it is working as it should, tried it with the couple of numbers..
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
int d;
int e;
int f;
if (a<b && a<c && b<c){
d = a;
e = b;
f = c;
System.out.println(f +" "+ e +" "+ d);
}
else if (b<a && b<c && a<c){
d = b;
e = a;
f = c;
System.out.println(f +" "+ e +" "+ d);
}
else if (c<b && c<a && b<a){
d = c;
e = b;
f = a;
System.out.println(f +" "+ e +" "+ d);
}
}
}