AnkitWebLogic

Calculate Sum

Example 1: WAP in Python to input two numbers and calculate its sum. 1

#input two numbers and find sum | ankitweblogic.com
a=int(input("Enter 1st Number: "))
b=int(input("Enter 2nd Number: "))
c=a+b
print("Sum = ",c)
Enter 1st Number: 10
Enter 2nd Number: 15
Sum = 25
Advertisement