下列程序的输出结果为 #includelt;iostream.hgt; intfunc(intn) { if〔nlt;1)return1

计算机 结果,程序, 已帮助 人

下列程序的输出结果为

#include< iostream. h>

int func(int n)

{

if〔n<1)return 1;

else return n+tune(n-1):

return 0;

}

void main()

{

cout$amp;A. 0

B.10

C.15

D.16

请帮忙给出正确答案和分析,谢谢!

热搜:下面程序的功能是输出数组s中最大元素