Może ktoś widzi gdzie jest błąd ?
Proszę o pomoc :)
Oczopląsów już dostaje haha
package pl.codegym.task.task04.task0420;
/*
Sortowanie trzech liczb
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
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 && a<c && b<c)
System.out.println(c+" "+b+" "+a);
else if (a<b && a<c && c<b)
System.out.println(b+" "+c+" "+a);
else if (b<a && b<c && a<c)
System.out.println(c+" "+a+" "+b);
else if (b<a && b<c && c<a)
System.out.println(a+" "+c+" "+b);
else if (c<a && c<b && a<b)
System.out.println(b+" "+a+" "+c);
else if (c<a && c<b && b<a)
System.out.println(a+" "+b+" "+c);
}
}