find the largest among three numbers In Python

   

find the largest among three numbers  In Python 


Program:


a = int(input("Enter A"))
b = int(input("Enter B"))
c = int(input("Enter C"))
if(a > b and a > c):
    print("A is Max")
elif(b > c and b > c):
    print("B is Max")
else:
    print("C is Max")
    



OutPut:
Enter A 12
Enter B 45
Enter C 6

B is Max


For More Information Visit: http://msktutorials.com/





No comments:

Post a Comment