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

After General Howe's forces defeated the Americans at Brooklyn Heights and White Plains, Washington's strategy called for
What was one effect of Bacon's Rebellion?
What is 0.2 repeating as a fraction or mixed number in simplest form?
Is the square root of 0.25 rational or irrational? PLEASE explain
the product of 5 and the cube of x, increased by the difference of 6 and x3
conversation between Hitler and mahatma Gandhi
Word phrase for algebraic expression 5h + 3k
Name three numbers between 0.33 and 0.34
please help me with number 1
The Twin Towers are forever known but how many floors did the towerS have ALL TOGETHER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!