Computer Science, asked by singhsrijal0, 8 months ago

WAP to find the maximum and minimum of three number​

Answers

Answered by Anonymous
2

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 .

Similar questions