Question PSC-FUNC-0060
MediumWhat is the output of this pseudocode?
Function c(Integer n, Integer r)
if (r == 0 or r == n)
return 1
end if
return c(n - 1, r - 1) + c(n - 1, r)
End Function
Print c(7, 3)
- A.
35
- B.
21
- C.
210
- D.
28
Sign up free to see the answer and a step-by-step explanation.