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

if 4 bags of corn can feed a herd of cows for 6 days, how many bags will feed the herd for 9 days ?
who made dutch claims in north america?
King Louis XVIA.He admired the revolution's principles.B.He was suspicious of the leaders of the revolution.C.He felt it was a much better revolution than the A
what can turn igneous rock into sediment?
if 4 bags of corn can feed a herd of cows for 6 days, how many bags will feed the herd for 9 days ?
what is a rational number between 1/8 and 1/4?
What's the answer to 1\2x+3=9
the pair of polygons is similar. find the value of x. answer on picture
4a + 3 - 9 = -7 + 2 + a
4a + 3 - 9 = -7 + 2 + a