I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class csharpExercise
{
static void Main(string[] args)
{
char ch;
Console.WriteLine("Alphabets from a - z are: ");
for (ch = 'a'; ch <= 'z'; ch++)
{
//Printing all alphabets with tab
Console.Write(ch+"\t");
}
Console.ReadLine();
}
}
Result:
Alphabets from a - z are:
a b c d e f g h i j k l m n o pq r s t u v w x y z
I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability..
Result:
Alphabets from a - z are:
a b c d e f g h i j k l m n o pq r s t u v w x y z
need an explanation for this answer? contact us directly to get an explanation for this answer