function checkNumbers(a, b, c) {
if ( a > b ) {
if ( a > c ) {
console.log("maximum = " + a);
} else {
console.log("maximum = " + c);
}
} else {
if ( b > c ) {
console.log("maximum = " + b);
} else {
console.log("maximum = " + c);
}
}
}
Last active
June 25, 2017 20:37
-
-
Save RinatValiullov/a2704a66b241e83917efd742f3f43ff1 to your computer and use it in GitHub Desktop.
Getting the maximum number
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment