Computer Science, asked by riya16893, 20 days ago

write a program to add two numbers using input function.




PLEASE TELL I WILL MARK AS BRAINLIEST.​

Answers

Answered by Anonymous
1

Python Program to Add Two Numbers

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

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

sum = a + b.

print("sum:", sum)

write a function that adds two numbers

num1 = input('Enter first number: ')

num2 = input('Enter second number: ')

sum = float(num1) + float(num2)

print('The sum of {0} and {1} is {2}'. format(num1, num2, sum)

Answered by vr106367
0

Answer:

num1 = float(input("Enter your first number : "))

num2 = float (input("Enter your second number : "))

sum = num1 + num2

print("The total sum is", sum)

Explanation:

Please mark me as brainliest!!!!!

Similar questions