Even numbers 1..12 via LINQ.
Ready — edit the code above and click Run.
using System;
class Program
{
static void Main()
{
using System.Linq;
Console.WriteLine(string.Join(", ", Enumerable.Range(1, 12).Where(x => x % 2 == 0)));
}
}
Try solving on your own first, then reveal the official answer.
Where filter.