9 lines
297 B
Python
9 lines
297 B
Python
# Question: Write a Python program to accept two numbers and check whether they are equal or not.
|
|
|
|
num1 = int(input("Enter first number: "))
|
|
num2 = int(input("Enter second number: "))
|
|
|
|
if num1 == num2:
|
|
print(f"{num1} and {num2} are equal.")
|
|
else:
|
|
print(f"{num1} and {num2} are not equal.") |