Count numbers > 11 in 1..23.
Ready — edit the code above and click Run.
using System;
class Program
{
static void Main()
{
using System.Linq;
Console.WriteLine(Enumerable.Range(1, 23).Count(x => x > 11));
}
}
Try solving on your own first, then reveal the official answer.
Count with predicate.