всё вроде работает,но 3 пункт не засчитывает
package com.javarush.task.pro.task04.task0409;
import java.util.Scanner;
/*
Минимум из введенных чисел
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner sc = new Scanner(System.in);
int max = Integer.MAX_VALUE;
while (sc.hasNextInt())
{
int x = sc.nextInt();
if (x<max)
max = x;
else if (sc.hasNextLine())
break;
}
System.out.print(max);
}
}