I have some code here for finding only left first small number from an array.
public void Test() {
int[] numbers = { 121, 124, 131, 135, 219, 287, 361, 367, 382, 420 };
var onlyfirstNumbersLessThanGiven = numbers.TakeWhile(n => n < 135);
Console.WriteLine("First numbers less than ");
foreach (var n in onlyfirstNumbersLessThanGiven)
{
Console.WriteLine(n);
}
}
How to find only 131 from above array? Please help me