Question PSC-LOOP-0063
HardWhat is the output of this pseudocode?
Integer a = 0, b = 1, i, t
for (each i from 1 to 10)
t = a + b
a = b
b = t mod 10
end for
Print a, b
- A.
9 5
- B.
5 8
- C.
Sign up free to see the answer and a step-by-step explanation.