i think my code doesnot look good, is very long but I get middle number
verification says no?!?!
package com.codegym.task.task04.task0441;
/*
Somehow average
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader rd = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(rd.readLine());
int b = Integer.parseInt(rd.readLine());
int c = Integer.parseInt(rd.readLine());
if(a < b && b < c){
System.out.println(b);
}
else if(b < a && a < c){
System.out.println(a);
}
else if(a < c && c < b){
System.out.println(c);
}
else if(a == b && b == c){
System.out.println(b);
}
else if(a == b){
System.out.println(b);
} else if(a == c){
System.out.println(c);
} else if(c == b){
System.out.println(b);
}
}
}