C# Program to Print ASCII Values Using do-while Loop
Program Statement:
Write a program to print all the ASCII values and their equivalent characters using a do-while loop. The ASCII values vary from 10 to 255.
Solution:
static void Main(string[] args)
{
int i = 0;
Console.WriteLine("ASCII character");
do
{
Console.WriteLine(i+" "+(char)i);
i++;
} while (i <= 255);
Console.ReadLine();
}
article C# Program to Print ASCII Values Using do-while Loop has been completed in the discussion
hopefully the information C# Program to Print ASCII Values Using do-while Loop that we provide can be useful for you to know the development of technology in the present
articles C# Program to Print ASCII Values Using do-while Loop we have conveyed to you, if feel this information is useful and you want to bookmark or share so that more people who know please use link https://profsmythe.blogspot.com/2013/12/c-program-to-print-ascii-values-using.html.
Tag :
Csharp,
programs,
0 comments:
Post a Comment