我如何计算10,000阶乘? (10000faktöryelinasılhesaplarım) [英] How do I calculate 10,000 factorial? (10000 faktöryeli nasıl hesaplarım)
本文介绍了我如何计算10,000阶乘? (10000faktöryelinasılhesaplarım)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道,我如何计算10,000的阶乘?
(acaba10000faktöryelinasılhesaplarım)
I wonder, how do I calculate factorial of 10,000?
(acaba 10000 faktöryeli nasıl hesaplarım)
推荐答案
谷歌再一次回答了这个问题。
析因计算器 [ ^ ]
使用C#的因子计划 [ ^ ]
Once again, Google answers the question.
Factorial Calculator[^]
Factorial Program using C#[^]
您好,
看一下这个提示和备选方案:
计算C#中整数的因子 [ ^ ]
计算法C#中整数的代码 [ ^ ]
计算C#中整数的因子 [ ^ ]
计算C#中整数的因子 [ ^ ]
计算C#中整数的因子 [ ^ ]
计算C#中整数的因子 [ ^ ]
计算C#中整数的因子 [ ^ ]
这些提示具有相同的标题,但它们是不同的提示。
Hi,
Have a look at this Tip and the alternatives:
Calculate the Factorial of an Integer in C#[^]
Calculate the Factorial of an Integer in C#[^]
Calculate the Factorial of an Integer in C#[^]
Calculate the Factorial of an Integer in C#[^]
Calculate the Factorial of an Integer in C#[^]
Calculate the Factorial of an Integer in C#[^]
Calculate the Factorial of an Integer in C#[^]
These Tips have the same title, but they''re different Tips.
使用 BigInteger [ ^ ]结构你可能完成任务。
即(你应该有一个大的大型控制台.... :-)):
Using the BigInteger[^] Structure you might accomplish the task.
Namely (you should have a big big big console.... :-) ):
class Program
{
public static BigInteger fact(Int32 n)
{
BigInteger f = new BigInteger(n);
while (--n > 1)
{
f *= n;
}
return f;
}
static void Main(string[] args)
{
BigInteger f = fact(10000);
Console.WriteLine(f.ToString());
}
}
这篇关于我如何计算10,000阶乘? (10000faktöryelinasılhesaplarım)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文