Python Program to accept 3 integer numbers and print maximum of its


a=b=c=0
a=int(input("Enter first number:"))
b=int(input("Enter second number:"))
c=int(input("Enter third number:"))
max=a;
if(b>max):
      max=b
if(c>max):
      max=c
print("The maximum number is:",max)




Output
>>>
Enter first number:10
Enter second number:20
Enter third number:30
The maximum number is: 30
>>>



No comments

Post your comments

Powered by Blogger.