What will be the output of the following pseudocode?
Note: / is integer division
Integer n, s
Set n = 75, s = 0
while (n > 1)
n = n / 2
s = s + n
End while
Print s78
71
145
70
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 a 7-question mock preview in the real exam interface.
Log in to see the answer