Hi PEIYANGXINQU,
欢迎来到MSDN论坛!
请您参考以下代码:
using System;
using System.Numerics;
class Program
{
static void Main(string[] args)
{
BigInteger answer = BigInteger.Pow(449, 524);
//Console.WriteLine(answer.ToString());
Console.WriteLine(answer.ToString().Substring(answer.ToString().Length - 4, 4));
}
}
如果您还有任何问题,不妨告诉我们!
祝,周末愉快!
Yoyo Jiang[MSFT]
MSDN Community Support |
Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
