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();
}
Articles about C# Program to Print ASCII Values Using do-while Loop finished discussed
We think it is enough information about C# Program to Print ASCII Values Using do-while Loop, hopefully the information we give can give benefit for you,
If you feel the information C# Program to Print ASCII Values Using do-while Loop that we provide can provide benefits for others please share with link https://darellsfinancialcorner.blogspot.com/2013/12/c-program-to-print-ascii-values-using.html thank you for visiting our blog page and do not forget to visit other
0 komentar:
Posting Komentar