To find the largest number among the three input numbers in Python program?
Updated: Oct 27, 2020
To find the largest number among the three input numbers
a = int(input("Enter first number: ")) b= int(input("Enter second number: ")) c = int(input("Enter third number: ")) if a >b and a>c: print("The Largest number is ",a) elif b>a and b >a: print("The Largest number is ",b)
else: print("The Largest number is ",c) Output:
Enter first number: 6
Enter second number: 7
Enter third number: 8
The largest number is 8