Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nazmul202101/29cd99efb07455b4afe0075d0bc082d9 to your computer and use it in GitHub Desktop.
Save nazmul202101/29cd99efb07455b4afe0075d0bc082d9 to your computer and use it in GitHub Desktop.
//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