Char + for Learn programming C# Sharp

Lesson:

Basic Data Types


Exercise:

Char + for 8


Objetive:

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


Code:

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