In this python if else program, we will check whether two numbers are equal or not.
Steps to solve the program
- Take two numbers as input.
- Using an if-else statement check whether two numbers are equal or not.
- Print the output.
num1 = 28
num2 = 88
if num1 == num2:
print("The given numbers are equal")
else:
print("The given numbers are not equal")
Output :
The given numbers are not equal