find the max number in an array c#
// Find the max number of this Array using C# build in function
WriteLine("Find the max number of this Array using C# build in function" + Environment.NewLine+ "{ 1,2,3,4,5,6,7,8,9}");
int[] array = new[] { 1,2,3,4,5,6,7,8,9};
var maxNumber = array.Max();
WriteLine($"Max Number Of this Array:{maxNumber}");