Python Program to Find the Largest Number Among Three Numbers

Python Program to Find the Largest Number Among Three Numbers

First of all you need to call variables as like a, b, c then you should call condition on python programming language. After typing this few lines of code then type print method to getting your exact value.

a = float(input("Enter Your First Number: "))
b = float(input("Enter Your Second Number: "))
c = float(input("Enter Your Third Number: "))

if (a>b) and (a>c):
	largest = a
elif (b>a) and (b>c):
	largest = b
else: 
	largest = c

print("The largest number is:", largest)

After running this code you are being able to get output of your desired program. If you enter same value which I had given then you are being able to get 64 is your largest number.

If you can’t understand this problem then you can comment bellow. I will try to reply your comment. Thank you so much. Best of luck.

close

Don’t miss any tips!

We don’t spam! Read our privacy policy for more info.

Share:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top