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

What is the source of coal? A. Compressed ancient plants B. Crystallized magma O C. Compressed ancient sea life D. Modern forests
Do you need a leader to make a change??
Ben is 50 years old. His son, Carl is 24 years old. How many years ago was Ben 3 times as old as Carl?​
Which statement best describes the atoms of the gas neon
can someone write 5 paragraphs on why homework should be banned i need this to pass my class i’ll mark brainlist!
The kind of drawings shown in the image above, which focus on the mass and motion of the body, are called
this question is for a medical course i am taking online this summer and I really need help on it Blood returns to the heart from the systemic circulation throu
5(20 – 3v) when v = 3/5
During which process does one bacterium inject its DNA into another bacterium through a thin tube called a pilus? A. Transduction B. Binary fission C. Conjugat
The answer heleplloolrkdkrkrkkfhrbebehhrehhdhf