Python Program to Find Maximum of Two Numbers

Python Program to Find Maximum of Two Numbers

Write Python Program to Find Maximum of Two Numbers

# Python Program to Find Maximum of Two Numbers

n1 = int(input("Enter the number 1 :--> "))
n2 = int(input("Enter the number 2 :--> "))

if n1 > n2:
    print("The largest number among ", n1, "and", n2, "is", n1)
else:
    print("The largest number among ", n1, "and", n2, "is", n2)

Output:

Enter the number 1 :--> 89
Enter the number 2 :--> 98

The largest number among 98 and 89 is 98