int A(int a){intb;if(a==2)return(3);b=a*a-A(a-1);return b;}main(){inta;a=A(5);printf("%d\n",a);}输出结果为:____
查看答案
#include int f(int x){int y;if(x==0||x==1) return (3);y=x*x-f(x-2);return y;}main(){int z;z=f(3); printf(“%d\n”,z);}输出结果为:_______
int fun(int x){if(x>0)return x+fun(x-1);return 1;}main(){printf("%d\n",fun(5)); }输出结果为:_____
#include void recur(intx);void main(){recur(3);}void recur(int n){ if(n<=0)return ;printf("%d ",n);recur(n-1);printf("%d ",n);}输出结果为:____
fun(int x){if(x/3>0) fun(x/2);printf("%d",x);}main(){fun(6);}输出结果为:_______。