#includedouble func(int n){ return n<=1? 1.0 : n*func(n-1);}main(){ int n,i=1; double sigma=0.0; scanf("%d",&n); while(i<=n){ sigma+=func(i); i++; } printf("Sigma is %g", sigma);}