What is the code to sum two numbers in python
Answers
Answered by
2
Answer:
In this program, we asked the user to enter two numbers and this program displays the sum of two numbers entered by user. We use the built-in function input() to take the input. Since, input() returns a string, we convert the string into number using the float() function. Then, the numbers are added.
Explanation:
Hope you like this answer
Answered by
2
n1 = int(input("Enter 1st Number")
n2 = int(input("Enter 1st Number")
print ("Sum = ",n1+n2)
Similar questions
Math,
5 months ago
Business Studies,
5 months ago
Math,
5 months ago
History,
10 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago