Spa*_*ven 1 c# math long-integer
所以这是我的代码:
static void Main(string[] args)
{
Console.WriteLine("How many numbers are you going to enter?");
long num = long.Parse(Console.ReadLine());
long[] nums = new long[num];
}
Run Code Online (Sandbox Code Playgroud)
当我为"num"输入10000000000时,我得到了
"System.OverflowException算术运算导致溢出."
我该怎么做才能解决这个问题?