第2个回答 2018-05-17
#include<stdio.h>
main()
{
int n,m,value;
printf("please input n,m:\n");
scanf("%d %d",&n,&m);
value=factor1(n)+factor1(m);
printf("%d的阶乘加%d的阶乘是%d\n",n,m,value);
}
int factor1(int n,int m)
{
int result1;
int result2;
if(n==1){
return 1;
}else{
result1=factor1(n-1)*n;
return result1;}
if(m==1){
return 1;
}else{
result2=factor1(m-1)*m;
return result2;}
}