Skip to content

Instantly share code, notes, and snippets.

@sincejune
Created October 25, 2016 02:02
Show Gist options
  • Save sincejune/f1053cdfd8343c62c208ba8e2a5c845c to your computer and use it in GitHub Desktop.
Save sincejune/f1053cdfd8343c62c208ba8e2a5c845c to your computer and use it in GitHub Desktop.
Find the maximum value of three numbers
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