package com.javarush.task.task04.task0420;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader number = new BufferedReader (new InputStreamReader(System.in));
int a = Integer.parseInt(number.readLine());
int b = Integer.parseInt(number.readLine());
int c = Integer.parseInt(number.readLine());
int max1 = a > b ? a : b;
int max2 = max1 > c ? max1 : c;
int min1 = a < b ? a : b;
int min2 = min1 < c ? min1 : c;
System.out.println(max2 + " " + max1 + " " + min2);
}
}
Почему не выполняется последнее условие?
![]()