C# Program toward Print ASCII values furthermore their equivalent characters using a while loop
Problem Statement:
Write a program toward print all the ASCII values furthermore their equivalent characters using a while loop. The ASCII values vary from 0 toward 255.
Solution:
static void Main(string[] args)
{
int i=0;
Console.WriteLine("ASCII Char");
while (i <= 255)
{
Console.WriteLine(i+" "+(char)i);
i++;
}
Console.ReadLine();
}