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

4x+6y+12=0 in MX+b form with explanation
what is pie cubed divided by 546
What is's closer vega or Andromeda galaxy?
The diagram below represents the bright-line spectra of four elements and a bright-line spectrum produced by a mixture of three of these elements.Can someone he
The length of a rectangular mural is 2ft. more than three times the width the area is 165 sq. ft. Find the Width And Length
What is the oxidation number of Mn in KMnO₄? a. -7 b. -3 c. 0 d. +3 e. +7
Unscramble the spanish words to make a complete sentence.Las El Juega A Damas Martes Èl
Sin A - 2 sin cube A --------------------------- 2 cos cube A - cos A
A railroad car with a mass of 1.94 ✕ 104 kg moving at 3.28 m/s joins with two railroad cars already joined together, each with the same mass as the single car a
Why do trains use steel wheels rather than rubber tires?                                                                 A) Steel wheels provide more grip, maki