int[] a = {5, 6, 10} int n = a.Max() + a.Sum() % 10; Console.Write(n);
该代码输出11,但我会期望为1,因为31%10 =1。有人可以解释为什么上面的代码给出不同的答案吗?
c#
c# ×1