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

Find three consecutive even integers whose sum is 36.
F(x)=1\3x^2+3x-18 Please help with steps
when we divide 2√3 by 2√3 it gives 3 how ?(2√3/2√3)
Provide an appropriate response. 39) Find a set of 7 scores that has the same mean but a smaller standard deviation than the set {65, 71, 77, 80, 82, 90, 96}.
A test has 10 true/false questions. How many different tests can be turned in to the teacher?
Which quantity would not be labeled with a vector? A. kilometers/hour B. miles/hour C. miles/gallon D. centimeters/second
within a book on a desk, there are billions of forces pushing and pulling on all the molecules. why is it these forces never by chance add up to a net force in
what is washroom in french
Who invented the prism?
x^3+13x^2+32x+20 please help me factorizing above equation