InterviewSolution
Saved Bookmarks
| 1. |
WAP to find the maximum and minimum of three number |
|
Answer» Answer: PLEASE MARK MY ANSWER AS BRAINLEST!!!!!!!!!!!!!!!!!!!!!!!!! Explanation: Logic to find maximum USING ladder if...else...if Here we will use LOGICAL AND && operator to COMBINE two conditions together. Maximum between THREE numbers is DETERMINED by three cases. num1 is maximum if num1 > num2 and num1 > num3 . num2 is maximum if num2 > num1 and num2 > num3 . |
|