Consider the following pseudocode carefully and trace its execution step by step. What will be printed when this pseudocode is executed?
Integer a = 2, b = 3, c, i
For i = 1 to 4
c = a + b
a = b
b = c
End For
Print b21
13
34
8
The verified answer and full solution are one login away
Every answer here is machine verified, with a step-by-step solution that teaches the method. Your login also unlocks a 7-question mock preview in the real exam interface.
Log in to see the answerMore pseudocode questions