#include<stdio.h>
int main (void)
{ int abc (int x); int result= abc(6) ; printf("thenumber is %d\n",result); getchar(); return 0;
}
int abc (int x)
{ if (x == 0) { return 1; } else { int recurse = abc(x-1); int result = x*recurse; return result; }
}
#include<stdio.h>
int main (void)
{ int abc (int x); //你们都不用声明的吗??? int result= abc(6); printf("thenumber is %d\n",result); return 0;
}
int abc (int x)
{ static int result =0; if (x == 0) return 1; else result = x*abc(x-1); return result; }