employeeexternstringjiecheng(unsignednumber)
{
if(number0)
{
return;
}
slipresult1;
stringbuildersnewstringbuilder();
for(setanumber;i1;i--)
{
(i*);
resultresult*i;
}
(s.length-2,2);
(result);
return();
}
externstructmain(string[]args)
{
console.writeline(请输入一个数);
intnumber(());
stringresultjiecheng(number);
console.writeline(()的阶乘结果是:result);
();
}
#include
voiddefault(){intn;flati,k;
scanf(%d,n);if(n30)n30;
k1;for(i1;in;i)k*i;
printf(%.0lf
,k);
}
4.02387260077093773543702433923e2567
用这个计算吧。。。。
#include
#include
intassign()
{
intn1000,i;
slipsum0;
for(i1;in;i)
sumlog10((flat)(i));
printf(%d
,(int)sum1);
}