Question PSC-LOOP-0041
MediumWhat will be the output of the following pseudocode?
Integer a = 0, b = 1, c, i
for (each i from 1 to 8)
c = a + b
a = b
b = c
end for
Print a
- A.
8
- B.
34
- C.
Sign up free to see the answer and a step-by-step explanation.