Author : Rahul

Write a program to print A-Z


Program

using System;

namespace ProgrammingQuestion
{
 class Program
 {
   static void Main(string[] args)
   {
     //Albhabet Logic and Print Result
     Console.WriteLine($"Alphabet A-Z:");
     for (int i = 0; i < 26; i++)
     {
       Console.Write(Convert.ToChar(i + (int)'A') + " ");
     }      
     Console.Read();
   }
 }
}

Output

Alphabet A-Z:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z