The function ComputeSum receives a positive integer n as the input and returns the value  ComputeSum(n) If n = 1, then Return(3) y := ComputeSum(n - 1) Return( ? ) What is the correct value for the algorithm to return?  单项选择题

题目图片
A

y

B

y+n

C

(y+2)y2

D

y+(n+2)n2

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!