98,108 views
14 votes
14 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

User Torbenrudgaard
by
2.5k points

2 Answers

25 votes
25 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 Snowcore
by
2.4k points
13 votes
13 votes

Answer:

sum = 0

count = 0

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

sum = sum + i

print(sum)

Explanation: python <3

User Hkariti
by
3.3k points