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

Factors that control traits are called what?
4q-2q+1 Combine the like terms to get a simpler expression. Please don't give the answer but how to figure it out.
48 over 120 = x over 100 cross multiply to get answer of x
What is the name of a polygon that adds up to 720 degrees
Choose the sentence that does not describe a structural adaptation. A. An elephant has a long trunk that it uses to reach leaves high in a tree. B. A dog walks
Graph the line with slope 2/3 passing through the point (3,2)
Hawaii is located in the Atlantic?
A number, plus one-third of itself, plus one-eighth of itself, equals 70. What is the number?
explain why offspring may or may not resemble to either parent
Which best explains why archaeologists and historians do not have extensive information about the Indus Valley civilization? A. The people of the Indus Valley c