Question 46 of 65Pseudocodepseudocode loops

What will be the output of the following pseudocode? Values printed in the loop appear on one line, separated by spaces.

Integer i, total
Set i = 1, total = 0
while (i < 9)
    i = i + 2
    total = total + i
    Print total
End while

The verified answer and full solution are one login away

Every answer here is machine verified, with a step-by-step solution that teaches the method. Your login also unlocks this full mock in the real exam interface.

Log in to see the answer
← Q45Q47 →Attempt the full timed mock