two lowest positive numbers given an array of minimum code example
Example: two lowest positive numbers given an array of minimum
using System.Linq;
public static class Kata
{
public static int sumTwoSmallestNumbers(int[] numbers)
{
return numbers.OrderBy(i => i).Take(2).Sum();
}
}