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 already been discussed
A few information about the C# Program to Print ASCII values and characters using a while loop, hopefully can provide benefits to all of you.
You're reading an article
C# Program to Print ASCII values and characters using a while loop and this article has a link to
https://mastispotgroup.blogspot.com/2013/12/c-program-to-print-ascii-values-and.html to revel book mark. Hopefully this article
could be useful, do not forget to look for information on obtaining the phone tech blog.
Tag :
Csharp,
programming,
programs,
0 komentar:
Posting Komentar