3.17 - Char + for

Objetive
Create a program to write the letters "B" to "N" (uppercase), using "for"

Solution
using System;
public class exercise067
{
    public static void Main()
    {
        for(char i = 'B'; i <= 'N'; i++)
        {
            Console.Write("{0} ", i);
        }
        Console.WriteLine(); 
    }
}

Popular Posts