Created
October 18, 2015 20:16
-
-
Save StrixG/9be53ec438da0b547863 to your computer and use it in GitHub Desktop.
Минимум 4 чисел
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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