c# how to check the minimum and maximum of numbers code example
Example 1: c# how to check the minimum and maximum of numbers
maxValue = F4 (F4) {
mxm = F4[0];
for (i=0; i
if (F4[i]>mxm) {
mxm = F4[i];
}
}
return mxm;
};
Example 2: finding minimum in c#
int LowestHeight = Math.Min(newPerson.Height, Math.Min(newPerson1.Height, Math.Min(newPerson2.Height, newPerson3.Height)));