233k views
3 votes
Write code using the range function to add up the series 15, 20, 25, 30, ... 50 and print the resulting sum each step along the way.

this is for coding please help
Expected Output
15
35
60
90
125
165
210
260

2 Answers

7 votes

Answer:

Step-by-step explanation:

Program (PascalABC) and Result:

Write code using the range function to add up the series 15, 20, 25, 30, ... 50 and-example-1
User Chizaram Igolo
by
5.1k points
4 votes

Answer:

sum = 0

count = 0

for i in range(15, 55, 5):

sum = sum + i

print(sum)

Explanation: python <3

User Rigoxls
by
4.5k points