code:-
first_num=int(input("Enter first number:-"))
Second_num=int(input("Enter Second number:-"))
if first_num>Second_num:
print(f"{first_num} is greater then {Second_num}")
elif first_num<Second_num:
print(f"{Second_num} is greater than {first_num} ")
else:
print("Both are equal")
Output:-
Enter first number:-12
Enter Second number:-11
12 is greater then 11
0 Comments