Question PSC-LOOP-0077
HardWhat is the output of this pseudocode?
Integer a = 1, b = 1, n = 0
while (b < 1000)
Integer t = b
b = a + b
a = t
n = n + 1
end while
Print n, b
- A.
15 987
- B.
15 1597
- C.
Sign up free to see the answer and a step-by-step explanation.