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

Popular posts from this blog

C program that contains a string XOR each character in this string with 0 ,127

Queue in Data Structure(DS)

Implementation of stack Using Array