Min operator in Linq

Gopesh9
Posted by Gopesh9 under LINQ category on | Points: 40 | Views : 1117
A simple example to get the minimum number of the array using Min()

int[] numbers = { 6, 2, 1, 1, 9, 8, 2, 7, 2, 0 }; 
int min = numbers.Min();
Console.WriteLine("The minimum number in the list is ", min);

Comments or Responses

Login to post response