to print second largest number of three numbers using if else
Answers
Answered by
1
In Python's Way:
num1 = int(input("First Number"))
num2 = int(input("Second Number"))
num3 = int(input("Third Number"))
if (num1 > num2) and (num1 > 3):
result = num1
elif (num2 > num1) and (num2 > num3):
result = num2
else:
result = num3
print("Largest number is",result)
Similar questions