Skip to content

Instantly share code, notes, and snippets.

@StrixG
Created October 18, 2015 20:16
Show Gist options
  • Save StrixG/9be53ec438da0b547863 to your computer and use it in GitHub Desktop.
Save StrixG/9be53ec438da0b547863 to your computer and use it in GitHub Desktop.
Минимум 4 чисел
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println(min(in.nextInt(), in.nextInt(), in.nextInt(), in.nextInt()));
}
static int min(int a, int b, int c, int d) {
return Math.min(a, Math.min(b, Math.min(c, d)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment