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

write -1.64 as a mixed number in simplest form
how to simplify these fractions
An unknown solution has a pH of 8. How would you classify this solution? A. acidic B. basic C. neutral D. There is not enough information to answer the question
The famous clock tower in London has a minute hand that is 14 feet long. How far does the tip of the minute hand of Big Ben travel in 35 minutes?
Which is a quality of an effective reward incentive?
6.85÷.5 what is the answer
What are three issues or events related to the Thirteen Colonies that still have an impact on our lives today?
3. What tactics did the United States use to contain communism in the Western Hemisphere?
who became the president in the election of 1800?
I am a multiple of 10. My factors include an even number and an odd number. I am greater than 3 x 5 and less than 4 x 7. What number am I!