find the max and min of an array in c# code example
Example: finding minimum in c#
int LowestHeight = Math.Min(newPerson.Height, Math.Min(newPerson1.Height, Math.Min(newPerson2.Height, newPerson3.Height)));
int LowestHeight = Math.Min(newPerson.Height, Math.Min(newPerson1.Height, Math.Min(newPerson2.Height, newPerson3.Height)));