Question PSC-LOOP-0037
EasyWhat is the output of this pseudocode?
Integer n = 47285, m = 0
while (n > 0)
if (n mod 10 > m)
m = n mod 10
end if
n = n / 10
end while
Print m
- A.
5
- B.
26
- C.
Sign up free to see the answer and a step-by-step explanation.