fun(int x,int y){static int m=0,I=2;I+=m+1;m=I+x+y; return m;}main(){int j=1,m=1,k;k=fun(j,m); printf("%d",k);k=fun(j,m); printf("%d\n",k)}输出结果为:____
查看答案
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);}输出结果为:____