#include
long fun(int n)
{
if(n==1||n==0)return 1;
return n*fun(n-1);
}
long sum(long a,long b,long c)
{
return a+b+c;
}
void main()
{
long x,y,z;
scanf("%ld%ld%ld",&x,&y,&z);
printf("%d",sum(fun(x),fun(y),fun(z)));
}
#include
long fac(int n)
{
int t;
if(n == 0 || n == 1)
t = 1;
else
t = n * fac(n - 1);
return t;
}
long add(int x, int y, int z)
{
long sum = 0;
sum = fac(x) + fac(y) + fac(z);
return sum;
}
你是想让人帮你做吗?
这么懒 想学好 c 还需自己动手做
额