Week 2 Programming Assignment 3
x,y = input().split(" ") //taking inputs from the user and split is used to seperate the two nos
x = int(x) //converting x into an integer type
y = int(y) //converting y into an integer type
if(x<y): //checking the condition which nos is greater among the two nos
print(y) //if y is greater than y then print y
else:
print(x) //if y is not greater than x then print x
Input Output
12,64 64
10,11 11
Comments
Post a Comment