Program to find the largest of given three numbers
=================== LARGEST OF THREE NUMBERS ======================
print ("Enter Three Numbers")
a=input("Enter first Number :")
b=input("Enter Second Number :")
c=input("Enter Third Number :")
if a<b:
if b<c:
print c, "is Larger"
else:
print b," is Larger"
else:
if a<c:
print c," is Larger"
else:
print a," is Larger"
============================ OUTPUT ===========================
Enter Three Numbers
Enter first Number :10
Enter Second Number :15
Enter Third Number :12
15 is Larger
============================ OUTPUT ============================
Enter Three Numbers
Enter first Number :21
Enter Second Number :96
Enter Third Number :10
96 is Larger
================================================================
No comments