cs/practical-file/questions/question_18.py
2025-06-24 02:37:47 +05:30

11 lines
328 B
Python

# Question: Write a Python program to accept two numbers and check whether they are equal or not
def main(num1: int, num2: int) -> None:
if num1 == num2:
print(f"{num1} and {num2} are equal.")
else:
print(f"{num1} and {num2} are not equal.")
if __name__ == '__main__':
main(10, 10)
main(10, 20)