Check out example codes for "finding minimum in c#". It will help you in understanding the concepts better.

Code Example 1

int LowestHeight = Math.Min(newPerson.Height, Math.Min(newPerson1.Height, Math.Min(newPerson2.Height, newPerson3.Height)));

Code Example 2

using System.Linq;

int maxValue = anArray.Max();

Learn ReactJs, React Native from akashmittal.com