C Sharp (C#) - LINQ Fundamentals
Which of the following is the correct way to calculate the sum of all integers in a list named numbers in C#?
Which of the following is the correct way to calculate the sum of all integers in a list named numbers in C#?
Sum() method calculates the total of all elements.Count() returns number of elements, Average() returns mean, and Length is not valid for List.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions