msides2545 msides2545
  • 08-09-2017
  • Computers and Technology
contestada

Using a loop, write a program that reads in exactly five integers and outputs the sum.

Respuesta :

prevost400 prevost400
  • 09-09-2017
# written in python
a = int(input("Enter a number"))
b = int(input("Enter a number"))
c = int(input("Enter a number"))
d = int(input("Enter a number"))
e = int(input("Enter a number"))

# or if you don't want user input, then just write
# a = 1
# b = 2, etc.

sum = a + b + c + d + e

print(sum)
Answer Link

Otras preguntas

10points Please help!!!!! A scientist is studying a unicellular organism. The organism normally looks like image A. Then the scientist places the cell in two di
A similarity between the governments of Israel and Iran is that __________.
Which expressions have a value of 18? Choose all answers that are correct. A. –3 – 21 B. 7 – (–25) C. 34 – 16 D. –4 – (–22)
What unit is used to measure weighted average atomic mass? a. amu b. gram c. angstrom d. nanogram
Germany joined the Triple Alliance to protect itself against a. Russia. c. France. b. Britain. d. the Ottoman empire.
Which river is explored by the Spanish
can you please help me with this before monday it would really help me 3(4 - 3s)=30
The closeness of a measurement to the actual value of what is being measured
How do you make 250% into. A fraction
How important is your role as a human being in the natural world