Python Program To Add Two Numbers
Write Python code to add two numbers
# WAP to Add Two Integer Numbers
n1 = input("Enter the Number 1 :--> ")
n2 = input("Enter the Number 2 :--> ")
# input taken as string in python
# so we have to type cast it
c = int(n1) + int(n2)
print("\nAddition:", n1, "+", n2, "=", c)
Output:
Enter the Number 1 :--> 23
Enter the Number 2 :--> 56
Addition: 23 + 56 = 79