How to calculate the sum of a list of integers in C#? - Biz Tech

How to calculate the sum of a list of integers in C#?

Listen
 List<int> numbers = new List<int> { 1, 5, 2, 7, 3 };
int sum = numbers.Sum();

Console.WriteLine(sum);