没注释的源代码
#include <iostream>
using namespace std;
int fun(int n);
int main()
{
int a,b,c,sum;
cout<<"please input a,b,c:";
cin>>a>>b>>c;
sum=fun(a)+fun(b)+fun(c);
cout<<"a!+b!+c!="<<sum<<endl;
return 0;
}
int fun(int n)
{
int area=1;
for(int i=n;i>0;i--)
{
area*=i;
}
return area;
}
标签:return,函数,area,int,由主,C++,fun,sum,cout From: https://blog.csdn.net/2303_80770781/article/details/143472622