Computer Science, asked by rawatdeepanshu268, 6 months ago

predict the output of the given code:
L1 =[10,90,35,40,19]

START =1

SUM =

forCin range(START,4):

SUM=SUM+L1[C]

print(C, "%", SUM)

SUM=SUM+L1[0]*10

print(SUM)​

Answers

Answered by shailkanch25
0

Answer:

1 %90

190

2%225

325

3%365

465

Explanation:

for loop dry run.

start

c=1 :

sum = sum +90

sum=0+90

after printing...

sum =sum+100

(10*10)

output:

1% 90

190

c=2 :

sum = sum +35

sum=190+35

after printing...

sum =sum+100

(10*10)

output:

2 % 225

325

c=3:

sum = sum +40

sum=325+40

after printing...

sum =sum+100

(10*10)

output:

3 % 365

465

correct me if i am wrong.!

Similar questions