Find large between two number
Factorial Program Find large between two number enter by User
Input Format:
The first line of input contains two numbers separated by a space
Output Format:
Print the larger number
x, y = tuple(list(map(int, input("Enter the two number to find the largest. ").split(' '))))
print(max(x,y))
OR
x,y = input("Enter the two number to find the largest. ").split(" ")
x = int(x)
y = int(y)
if(x>y):
print(x)
else:
print(y)
Comments
Post a Comment