Write a Python program to enter two numbers and find their sum.

PROGRAM

# Program to find the sum of two numbers
# Taking input from the user
num1 = int(input(“Enter the first number: “))
num2 = int(input(“Enter the second number: “))
# Calculating the sum
sum_result = num1 + num2
# Displaying the result
print(“The sum of”, num1, “and”, num2, “is:”, sum_result)

OUTPUT

TRY THE ABOVE CODE

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.