\r'()*+,-S{? ¡ 23\n,¢£a¤\n*1!+2!+3!+...+n! P\rLp\rdoublefact(intn);\rdoublefactsum(intn);\rfact?\r ¡¥¦a+,P\nfactsum?\r1!+2!+W+”¨ P(i7i<NeP\r ¡¢RHP`p\r#include<stdio.h>\rdoublefact(intn);\rdoublefactsum(intn);\rintmain()\r(\rintn;\rscanf("%d",&n);EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rprintfC'fact(%d)=%.0f\n",n,fact(n));\rprintf("sum-%.0f\n",factsum(n));\rreturn0;\r)\r/ª¥E¦§S«©z{|*/\r0@P`1:\r10\r0?P`1:\rfact(10)=3628800\rsum=4037913\r0@P`2p\r0\r0?P`2p\rfact(0)=1\rsum-0\r?\rdoublefact(intn)\r(\rinti;\rdoublem=1;\rif(n==0)\rreturnm;\relse\rfor(i=l;i<=n;i++)EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rm=m*i;\rreturnm;\r)\rdoublefactsum(intn)\r(\rintj;\rdoublesum;\rsum=0;\rif(n>0)\r(\rfor(j=l;j<=n;j++)\rsum+=fact(j);\r)\rreturnsum;