Write a program that prompts the user to enter two integers and display their sum on the screen.
Source Code
num1 = int(input("Enter first integer: "))
num2 = int(input("Enter second integer: "))
sum = num1 + num2
print("The sum of", num1, "and", num2, "is", sum)
Output
Enter the first integer: 10
Enter the second integer: 5
The sum of 10 and 5 is 15