Created
October 25, 2016 02:02
-
-
Save sincejune/f1053cdfd8343c62c208ba8e2a5c845c to your computer and use it in GitHub Desktop.
Find the maximum value of three numbers
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
private static int findMax(int a, int b, int c) | |
{ | |
return ((a > b ? a : b) > c) ? (a > b ? a : b) : c; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment