220k views
0 votes
Consider the following code:

start = int(input("Enter the starting number: "))
stop = int(input("Enter the ending number: "))
X = -10
sum = 0
for i in range (start, stop, x):
sum = sum + i
print(sum)
What is output if the user enters 78 then 45?

User Mintgreen
by
5.3k points

1 Answer

2 votes

Answer:

252

Step-by-step explanation:

I tested the code and it outputted 252

hope i helped :D

Consider the following code: start = int(input("Enter the starting number: &quot-example-1
User Ddiego
by
4.9k points