Created
September 30, 2015 15:11
-
-
Save StrixG/bb41fc980a819427bb20 to your computer and use it in GitHub Desktop.
Java
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); | |
int a = in.nextInt(); | |
int b = in.nextInt(); | |
int c = in.nextInt(); | |
System.out.println(Math.max(a, Math.max(b, c))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Always close the scanner once you're done with it.
in.close();