Python Program to Find the Largest In Between Three Numbers

Here you’ll get a python program to seek out largest variety among 3 numbers.

The program can raise the user to input 3 numbers and so print greatest among them.

Code

print("enter three numbers:")
 
a = int(input())
b = int(input())
c = int(input())
 
if a>b and a>c:
	print(a, " is largest")
elif b>a and b>c:
	print(b, " is largest")
else:
	print(c, " is largest")

Output

enter three numbers:
12
7
9
12 is the largest

Leave a Comment

error: Alert: Content is protected!!