melisaacevedo90
melisaacevedo90 melisaacevedo90
  • 07-01-2021
  • Advanced Placement (AP)
contestada


Write a program that takes three numbers and prints their sum. Every
number is given on a separate line.

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 12-01-2021

Answer:

This solution is implemented in python

num1 = float(input("Number 1: "))

num2 = float(input("Number 2: "))

num3 = float(input("Number 2: "))

print("Sum: "+str(num1+num2+num3))

Explanation:

This line prompts the user for the first number

num1 = float(input("Number 1: "))

This line prompts the user for the second number

num2 = float(input("Number 2: "))

This line prompts the user for the third number

num3 = float(input("Number 2: "))

This calculates and prints the sum

print("Sum: "+str(num1+num2+num3))

Answer Link

Otras preguntas

Which expression is rational? 4.121221222… square root of 36 square root of 21 1.192744502…
One difference between transport long ago and transport today is?​
Identify a strategy the hospital could use so that this indicator could transform into a strength in patient satisfaction
________ is the amount an employee earns before payroll withholding is performed. A. Net pay B. Gross pay C. Taxable interest D. An estate Please select the bes
Which pattern(s) may be observed from the arrangement of elements in the periodic table? Select all that apply. A. increasing number of protons B. similarity
Given that triangle ABC~ Triangle DEF solve for x
Ray QS bisects PQR and mPQR =57° Find mPQS
What happen if lynxes go extinct
what happends when you slowly pull out the paper while theirs a coin on top​
What is the value of ∣∣J∣∣? Enter your answer in the box.