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();
}
we feel the information C# Program to Print ASCII Values Using do-while Loop that's all.
hopefully the information C# Program to Print ASCII Values Using do-while Loop that we have conveyed can provide benefits for you and all visitors of this blog, if any criticism and suggestions please comment.
you just read C# Program to Print ASCII Values Using do-while Loop if this article is considered useful and you want to bookmark and share it please use the link https://stephaniefulke.blogspot.com/2013/12/c-program-to-print-ascii-values-using.html and what if you want other information look for another page in this blog.
Tag :
Csharp,
programs,
0 komentar:
Posting Komentar