#include
void main()
{int sum=0,a=1,i,b=1;
for (;a<=20;a++)
{for (i=1;i<=a;i++)
b*=i;
sum+=b;}
printf("sum=%d",sum);}
#include
#pragma hdrstop
#include
//---------------------------------------------------------------------------
using namespace std;
#pragma argsused
int main(int argc, char* argv[])
{
int i,n=20,sum=0,t=1;
for(i=1;i<=n;i++)
{
t*=i;
sum+=t;
}
cout<<"sum ="<
return 0;
}