Почему выводит 10 объясните пожалуйста
Остальное потом х)
package com.javarush.task.task04.task0441;
/*
Как-то средненько
*/
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));
String A = reader.readLine();
int a = Integer.parseInt(A);
String B = reader.readLine();
int b = Integer.parseInt(B);
String C = reader.readLine();
int c = Integer.parseInt(C);//напишите тут ваш код
int max = Math.max(a,b);
int max2 = Math.max(max,c);
int min = Math.min(a,b);
int min2 = Math.min(min,c);
int medium = ((a + b + c) - min - max);
System.out.println(medium);
}
}