Once you attempt the question then PrepInsta explanation will be displayed.

In this pseudo code, the for loop operates from n = 6 until n < 9.

In the first iteration we have the value of n = 6, s = 0 + 6 = 6.

In the next iteration we have the value of n = 7, s = 6 + 7 = 13.

In the third iteration we have the value of n = 8, s = 13 + 8 = 21.

The next iteration wouldn't be executed since the condition of the loop n < 9 becomes false. And thus the loop terminates.

So the final answer we get is 21.