Asked by valin
Write a program to determine maximum number
among three non-equal numbers
among three non-equal numbers
Answers
Answered by
Steve
if (a>b) {
if (b>c) {max=a} else {if (a>c) {max=a} else {max=c}}
} else if (b<c) {max=c} else {max=b}
}
better check for balanced braces.
if (b>c) {max=a} else {if (a>c) {max=a} else {max=c}}
} else if (b<c) {max=c} else {max=b}
}
better check for balanced braces.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.