cs/practical-file/answers/question_01.py

6 lines
209 B
Python

# Question: Write a Python program to accept two integers and print their sum.
num1 = int(input("Enter first integer: "))
num2 = int(input("Enter second integer: "))
print(f"{num1} + {num2} = {num1 + num2}")