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();
}
so much information C# Program to Print ASCII Values Using do-while Loop
hopefully the information C# Program to Print ASCII Values Using do-while Loop that we provide can be useful for you in the set of technology products that fit your daily needs,
have just read the article titled C# Program to Print ASCII Values Using do-while Loop if you feel useful information and you want to bookmark or share please use the link https://ramblingsofker.blogspot.com/2013/12/c-program-to-print-ascii-values-using.html and do not forget to go back to this blog if you want to know information about the latest gadgets.
Tag :
Csharp,
programs,
0 komentar:
Posting Komentar