Write a program to find the summation of the numbers from 5 to 15

Answers

Answer 1

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)


Related Questions

Other Questions
Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: There are 12 inches in a A 2 paragraph summary of the music in todays inaigration Last night, the temperature fell from 0F to -13 in 4 hours. What was the average temperature change per hour? Solve the division problem. 2 1 -13= - 4 5 5 The temperature drop per hour can be represented by I F. QUICKLY Which four battles did the South win in 1862and 1863? BRAINLEST to whoever Solve the given proportionX= ? 11. Which result of the war do you think is the most important? Tell me why you think that. Which ones are linear and nonlinear?NEED ASAP RIGHT ANSWER WILL GET MARKED AS BRAINLIEST If x = 3, evaluate x + 7 Which cube is a unit cube?A cube that is 7 feet long, 7 feet tall, and 7 feet highB a cube that is 1 meter long, 1 meter wide, and 1 meter highC a cube that is 5 inches long, 5 inches wide, and 5 inches highD a cube that is 15 centimeters long, 15 centimeters wide, and 15 centimeters high Fill in the blanks to name each complex numbershown in the plane to the right.point x: __ + __ipoint w: __ point z: __ In the passage what dose mosaic mean Question is on the picture Select the boxes in the table to match the beliefs and practices to the religions. Can some one really help me please!!!! :((( Where do the Logan's live in roll of thunder hear my cry? A. On Harlan grangers land B. On their old land C. on government owner land or D. On a sharecropping plantation 2.00llons isequal to howmany liters What is the energy source that allows photosynthesis to occur? each unit requires 1.8 yd of fabric to be produced. at the end of each quarter, 20% of the next quarter's production needs for material should be at hand. budgeted purchases of material for the second quarter would be g What are the social effects of population growth. Which antivenom will save Tyler?Select one:a.Antivenom Ab.Antivenom Bc.Antivenom Cd.Antivenom D