c# · integer. Provided that you can use .NET 3.5 (or newer) and LINQ, try int sum = arr.Sum();. Yes there is. With .NET 3.5: int sum = arr.Sum(); Console.
確定! 回上一頁