Quantcast
Channel: The Crazy Programmer
Viewing all articles
Browse latest Browse all 761

Python Program to Find Largest Among Three Numbers

$
0
0

Here you will get python program to find largest number among three numbers.

The program will ask user to input three numbers and then print greatest among them.

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 largest

The post Python Program to Find Largest Among Three Numbers appeared first on The Crazy Programmer.


Viewing all articles
Browse latest Browse all 761

Trending Articles