How to get the maximum value from a list of integers in C#? - Biz Tech

How to get the maximum value from a list of integers in C#?

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

Console.WriteLine(max);