ellabarzyk7783 ellabarzyk7783
  • 21-01-2021
  • Engineering
contestada

Write a program to find the summation of the numbers from 5 to 15

Respuesta :

samuelonum1
samuelonum1 samuelonum1
  • 21-01-2021

Answer:

See the code in the explanation section

Explanation:

Note: the code below is writen in Python language

lower = int(input("Enter lower bound of range: "))

upper = int(input("Enter upper bound of range: "))

sum = 0

for i in range(lower, upper + 1):

 sum = sum + i

 i = i + 1

print("Sum is ", sum)

Answer Link

Otras preguntas

When one bumper car hits another, how does the reaction force affect the first car? a. The car moves in the direction opposite of the action force. b. The car c
Which is an example of hybridization that would increase hybrid vigor?
the comparison of table salt and glucose
what is 1 subtracted from twice a number if the number is-2
In science, the prefix hemo- refers to ________. ears heart cells blood
Which of the following best describes the British position toward Native Americans after the Revolutionary War? a. The British offered to take the Native Americ
is a diamond made in a laboratory a mineral
To make ribbon and bow for a hat, Stacey needs 5/6 yard of black ribbon and 2/3 yard of red ribbon. how much total ribbon does she need.
Megan's dog Sparky eats 4 1/4 cups of food each day. Explain how Megan can determine how much food to give Sparky if she needs to feed him only 2/3 as much. Sol
The ratio of roosters to chickens is 2 to 8. If there are 5 roosters, how many chickens are there?