Computer Science, asked by dd6724529, 4 months ago

write a python program to Add two numbers​

Answers

Answered by anurag2543
2

Python Program to Add Two Numbers

# This program adds two numbers provided by the user.

# Store input numbers.

num1 = input('Enter first number: ')

num2 = input('Enter second number: ')

# Add two numbers.

sum = float(num1) + float(num2)

# Display the sum.

Answered by atrs7391
2

a = int(input("Enter first number: "))

b = int(input("Enter second number: "))

sum = a + b.

print("Sum of the numbers =", sum)

Similar questions