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

For the reaction 2 nh3 + ch3oh → products, how much ch3oh is needed to react with 93.5 g of nh3? 1. 1.31 mol 2. 46.8 mol 3. 2.75 mol 4. 11.3 mol 5. 3.32 mol 6.
Which parts of the worm are included in the excretory system?
what happened at the siege of Boston in 1775
S described as a type of soul music that blended rhythm and blues with popular music.
Draw the hands on the clock to show the time given in spanish son las ocho y media
The image of the point (4,-3) under a reflection across the x-axis is _____? a. (-4,3) c. (3,4) b. (-4,-3) d. (4,3)
Solve 2⁄3 + 5⁄6 and put answer in simplest form A. 9⁄6 B. 7⁄6 C. 2⁄3 D. 3⁄2
In word problems, the word "of" indicates an equal sign. True or false?
What is the x-coordinate for the minimum point in the function f(x) = 4 cos(2x − π) from x = 0 to x = π?
Highly condensed and compact regions of dna are more easily transcribed than the decondensed regions true or false