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