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();
}
Information about the C# Program to Print ASCII Values Using do-while Loop has been discussed
A few of our information about the C# Program to Print ASCII Values Using do-while Loop, hopefully give more knowledge for you
You have finished reading
C# Program to Print ASCII Values Using do-while Loop and many articles about Techno News in our blog this, please read it. and url link of this article is
https://ikkemunandar.blogspot.com/2013/12/c-program-to-print-ascii-values-using.html Hopefully discussion articles on
provide more knowledge about the world of new tech gadgets and Techno News.
Tag :
Csharp,
programs,
0 komentar:
Posting Komentar