Computer Science, asked by caxiwor187, 9 months ago

write a python programme to add two numbers

Answers

Answered by 16shots
6

\huge{\green{\boxed{\red{\boxed{\blue{\boxed{\bf{\mathfrak{\purple{HELLO}}}}}}}}}}

\huge\bigstar\underline\mathcal\orange{ANSWER}

a=float(input("Enter a"))

b=float(input("Enter b"))

c=a+b

print(c)

Mark as brainliest ❤

Answered by Quik
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