Question PSC-FUNC-0076
HardWhat does the following pseudocode print?
Function a(Integer n)
if (n == 0) return 0 end if
return b(n - 1) + 1
End Function
Function b(Integer n)
if (n == 0) return 0 end if
return a(n - 1) * 2
End Function
Print a(5), b(5)
- A.
11 10
- B.
5 5
- C.
Sign up free to see the answer and a step-by-step explanation.