write a python programme to add two numbers
Answers
Answered by
6
a=float(input("Enter a"))
b=float(input("Enter b"))
c=a+b
print(c)
Mark as brainliest ❤
Answered by
2
Hello!
Here is the answer for your question!
≫ ──── ≪•◦ ❈ ◦•≫ ──── ≪
Q) write a python programme to add two numbers
≫ ──── ≪•◦ ❈ ◦•≫ ──── ≪
Answer:-. # Remember to maintain the indentation in the programme
# two float values
val1 = 100.99
val2 = 76.15
# Adding the two given numbers
sum = float(val1) + float(val2)
# Displaying the addition result
print("The sum of given numbers is: ", sum)
# This programme will add any two numbers with decimal and give result in a sentence!
≫ ──── ≪•◦ ❈ ◦•≫ ──── ≪
Hope this clarified your doubt :)
Similar questions