问题详情
#include<iostream.h>
int func(int n)
{
if(n<1) return 1;
else retur n+func(n-1) ;
return 0;
}
void main()
cout < < func(5) < < endl;
A.0
B.10
C.15
D.16