Python Program to accept 2 integer numbers and print maximum of its.


a=b=0
a=int(input("Enter first number:"))
b=int(input("Enter second number:"))
max=a;

if(b>max):
      max=b
print("The maximum number is:",max)




Output
>>>
Enter first number:30
Enter second number:15
The maximum number is: 30
>>>



No comments

Post your comments

Powered by Blogger.