Skip to content
RapidFinger — free online typing test

Typing tests

← All programming languages

C# Coding Practice

Practice typing real code syntax, including brackets, punctuation, and indentation. Snippets are for typing practice only and are never executed.

Classes, collections, and loops

Type the code exactly. Tab inserts four spaces. Code is not executed.

Choose another snippet

Progress: 0%

Current mismatches: 0

using System;
using System.Collections.Generic;

class Program
{
    static void Main()
    {
        var names = new List<string> { "Ada", "Grace", "Linus" };

        foreach (string name in names)
        {
            if (name.Length > 4)
            {
                Console.WriteLine($"Hello, {name}!");
            }
        }
    }
}

Type the code exactly, including spaces and indentation.