Question PSC-FUNC-0080
HardWhat is the output of this pseudocode?
Function steps(Integer n)
if (n <= 1) return 1 end if
return steps(n - 1) + steps(n - 2) + steps(n - 3)
End Function
Print steps(5)
- A.
11
- B.
17
- C.
Sign up free to see the answer and a step-by-step explanation.