Write a program that will ask the user to give two numbers and then the program will determine which of the two number is higher, lower or they are just the same numerical value.
Program Listing
# Rollyn M. Moises and Jake R. Pomperada
# two_numbers.py
# February 7, 2019 Thursday
# Bacolod City, Negros Occidental
print();
print("\t Two Number Checker ");
print();
x = int(input("\tEnter First Value : "));
y = int(input("\tEnter Second Value : "));
if x < y:
print();
print("\t{0} is less than {1}.".format(x,y));
else:
if x > y:
print();
print("\t{0} is greater than {1}.".format(x,y));
else:
print();
print("\t{0} and {1} must be equal.".format(x,y));
print();
print("\tEND OF PROGRAM");
Program Listing
# Rollyn M. Moises and Jake R. Pomperada
# two_numbers.py
# February 7, 2019 Thursday
# Bacolod City, Negros Occidental
print();
print("\t Two Number Checker ");
print();
x = int(input("\tEnter First Value : "));
y = int(input("\tEnter Second Value : "));
if x < y:
print();
print("\t{0} is less than {1}.".format(x,y));
else:
if x > y:
print();
print("\t{0} is greater than {1}.".format(x,y));
else:
print();
print("\t{0} and {1} must be equal.".format(x,y));
print();
print("\tEND OF PROGRAM");