C-17-Q071mediumsingle_mcq
The condition for declaring num1 as the largest is:
The condition for declaring num1 as the largest is:
- a
num1 > num2 or num1 > num3 - b
(num1 >= num2) and (num1 >= num3) - c
num1 == num2 and num1 == num3 - d
num1 != num2 and num1 != num3
ব্যাখ্যা
num1 is the largest only when it is greater than or equal to both other numbers, i.e. (num1 >= num2) and (num1 >= num3). Using >= ensures correct results even when values are equal.