0% found this document useful (0 votes)
30 views1 page

Largest Number

The Python program compares three numbers, a, b, and c, to determine which one is the largest. It uses conditional statements to check the values and prints which variable holds the greatest number. In this case, it will output 'b Is Greater' since 52 is the largest among the three.

Uploaded by

dinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views1 page

Largest Number

The Python program compares three numbers, a, b, and c, to determine which one is the largest. It uses conditional statements to check the values and prints which variable holds the greatest number. In this case, it will output 'b Is Greater' since 52 is the largest among the three.

Uploaded by

dinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#Write a Python Program to Find the Largest Among Three Numbers

a=9
b=52
c=5
if (a>b) and (a>c):
print('a Is Greater')
elif (b>a) and (b>c):
print('b Is Greater')
else:
print('c Is Greater')

You might also like