здравствуйте. вроде все цифры сравнил, известны все данные, вывел в порядке убывания с пробелом, но все равно говорит разложить в порядке убывания.
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int d = Integer.parseInt(reader.readLine());
int e = Integer.parseInt(reader.readLine());
int f = Integer.parseInt(reader.readLine());
int a, b, c;
a = 0; b = 0; c = 0;
if (f >= d) c = f;
else c = d;
if (d >= e) a = d;
else a = e;
if (e >= f) b = f;
else b = e;
System.out.println(c + " " + a + " " + b);
}
}
package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int d = Integer.parseInt(reader.readLine());
int e = Integer.parseInt(reader.readLine());
int f = Integer.parseInt(reader.readLine());
int a, b, c;
a = 0; b = 0; c = 0;
if (f >= d) c = f;
else c = d;
if (d >= e) a = d;
else a = e;
if (e >= f) b = f;
else b = e;
System.out.println(c + " " + a + " " + b);
}
}