676 views

1 Answer

Best answer
2 votes
2 votes
In kth loop the value of d = 10.

now when k=31 , the condition will be false..

then j will be incremented (j=2)...

when j=1 then d=10. .. {condition is (j<31)}

for j=30 ..d=10*30 = 300..ok..??

similarly, i=30..d = 300 * 30= 9000
selected by

Related questions