c语言sum函数1 2 n,用函数的递归调用求sum=1+2+3+4+…+n的和,整数n从键盘输入。 C语言。...
//利用递归du函数求zhin!dao,由键盘输回入任一整答数,求n!#includeunsignedlongjc(unsignedlongn){if(n==1)return1;elsereturnn*jc(n-1);}intmain(){unsignedlongn;while(scanf("%ld",&n)!=EOF){printf("%ld\n",jc(n));}return0;},#incl