题目内容

#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);}输出结果为:_______。

#include #define N 5#define M N+1#define f(x) (x*M)main(){int i1,i2;i1=f(2);i2=f(1+1);printf(“%d %d\n”,i1,i2);}输出结果为:________

答案查题题库