C# Program to Print ASCII values and their equivalent characters using a while loop
Problem Statement:
Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255.
Solution:
static void Main(string[] args)
{
int i=0;
Console.WriteLine("ASCII Char");
while (i <= 255)
{
Console.WriteLine(i+" "+(char)i);
i++;
}
Console.ReadLine();
}
Articles C# Program to Print ASCII values and characters using a while loop finished we discussed
A few of our information about the C# Program to Print ASCII values and characters using a while loop, may be useful to you in finding references about the latest gadgets.
You've finished reading an article
C# Program to Print ASCII values and characters using a while loop and many articles about Specs Phone in our blog this, please read it. and url link of this article is
https://manmaza.blogspot.com/2013/12/c-program-to-print-ascii-values-and.html Hopefully discussion articles on
could be useful and provide more knowledge for your life and family.
Tag :
Csharp,
programming,
programs,
0 comments:
Post a Comment