Computer Science, asked by formless, 22 days ago

A question from python:

n=50

i=5

s=0

while i s+=i

i+=10

print ("i=", i )

print ("sum=", s )


The answer is i=55 and sum= 125.


I got it about sum but in case of i I am not getting why the vale is 55 when it is given that i

Answers

Answered by krithivjayaprakash
1

Answer:

The function is not defined

Explanation:

n=50

i=5

s=i+n

print ("The sum:",s)

print (i* *2)

Hence the output will be

The sum: 55

125

Similar questions