The program asks the user to input two numbers, stores them as integers, then compares the numbers and prints a statement depending on whether the first number is greater than, less than, or equal to the second number.
The program asks the user to input two numbers, stores them as integers, then compares the numbers and prints a statement depending on whether the first number is greater than, less than, or equal to the second number.
The program asks the user to input two numbers, stores them as integers, then compares the numbers and prints a statement depending on whether the first number is greater than, less than, or equal to the second number.
firstNumber = int(input("Enter a first number: "))
secondNumber = int(input("Enter a second number: "))
if firstNumber > secondNumber : print("First number is greater than second number") elif firstNumber < secondNumber: print("First number is lesser than second number") else: print("First number is equal to second number")