C# Coding Practice
Practice typing real code syntax, including brackets, punctuation, and indentation. Snippets are for typing practice only and are never executed.
Filter a list with LINQ
Type the code exactly. Tab inserts four spaces. Code is not executed.
Progress: 0%
Current mismatches: 0
using System;
using System.Linq;
class Program
{
static void Main()
{
int[] numbers = { 3, 8, 12, 5, 20 };
var largeNumbers = numbers
.Where(number => number >= 10)
.ToArray();
Console.WriteLine(string.Join(", ", largeNumbers));
}
}
Type the code exactly, including spaces and indentation.