in my code ...the nested else statement is not printing display,, help ??
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 br=new BufferedReader(new InputStreamReader(System.in));
int a=Integer.parseInt(br.readLine());
int b=Integer.parseInt(br.readLine());
int c=Integer.parseInt(br.readLine());
if(a>=b && b>=c){
if(b>=c)
System.out.println(a+" "+b+" "+c);
else
System.out.println(a+" "+c+" "+b);
}else if(b>=c && c>=a){
if(c>=a)
System.out.println(b+" "+c+" "+a);
else
System.out.println(b+" "+a+" "+c);
}else if(c>=b && b>=a){
if(b>=a)
System.out.println(c+" "+b+" "+a);
else
System.out.println(c+" "+a+" "+b);
}
}
}