Last active
December 8, 2016 01:17
-
-
Save nazmul202101/29cd99efb07455b4afe0075d0bc082d9 to your computer and use it in GitHub Desktop.
This file contains 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
//Warmup-1 | |
//intMax | |
// intMax | |
// Given three int values, a b c, return the largest. | |
public int intMax(int a, int b, int c) { | |
int max=0; | |
if(a>b && a>c){ | |
return a; | |
} | |
else if(b>a && b>c){ | |
return b; | |
} | |
else{ | |
return c; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment