Linq Example 38 - Max

11:18 PM
Linq Query:

//Max

            int[] myNumbers = { 5,8,6,2,1,9,4,6 };
            
            int Max = myNumbers.Max();

            Console.WriteLine(Max);

//


Output:
9

0 comments:

Post a Comment