I'm using Math.Max and Math.Min to find the largest and smallest decimals in the following code:
decimal[] numbers = { d1, d2, d3, d4, d5, d6, d7, d8, d9, d10 };
decimal biggestNumber = numbers.Max();
decimal lowestNumber = numbers.Min();
lblS1Val.Text = biggestNumber.ToString();
lblO1Val.Text = lowestNumber.ToString();
I'd like to actually find the three largest and three smallest numbers. Can I do that with Math.Max/Min?