Python program to find Largest of 3 Numbers

# Python program to find the greatest of three numbers using if-else statement
num1 = int(input())
num2 = int(input())
num3 = int(input())
if (num1 >= num2) and (num1 >= num3):
 largest = num1
elif (num2 >= num1) and (num2 >= num3):
 greatest = num2
else:
 greatest = num3
print("The greatest number is",greatest 

OUTPUT:

Input:
54
86
24
Output:
86

Sharing Is Caring

Leave a Comment