#include <stdio.h>long fun(int a){if (a==1)return 1;long temp = a*fun(a-1);return temp;}int main(){printf("%d\n",fun(5));return 0;}
#include <stdio.h>int getResult(int n){ if(n==1) return 1; return n*getResult(n-1);}int main(){ int num; num=getResult(5); printf("num=%d",num); return 0;}