Write a Python Program to Add Two Numbers

We have written the code for Python Program to Add Two Numbers below. It is a very easy program.

#program to add two number

n1 = int(input("Enter first number = "))
n2 = int(input("Enter second number = "))

#Add number

sum = n1+n2
print("Sum of number = ", sum)

Explanation of the program

First, we input numbers in n1 and n2.
Added both numbers in the second step.
In the last step, print the number.

Other Python programs

Write Python Program to Find the area of a circle

Write a python program to print Fibonacci series


Write A Comment

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

  • Recent Posts