C# Program to Print ASCII values and their equivalent characters using a while loop
Problem Statement:
Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 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();
}
information about C# Program to Print ASCII values and characters using a while loop has been completed in the discussion
hopefully information C# Program to Print ASCII values and characters using a while loop can benefit you in getting the latest information about technology,
you just read the article entitled C# Program to Print ASCII values and characters using a while loop if the article feel useful for you please bookmark or share by using link https://micromyaw.blogspot.com/2013/12/c-program-to-print-ascii-values-and.html and thank you.
Tag :
Csharp,
programming,
programs,
0 comments:
Post a Comment