Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Problem 14. * Print the ASCII Table
- //Find online more information about ASCII (American Standard Code for Information Interchange) and write a program to prints the entire ASCII table of characters at the console (characters from 0 to 255). Note that some characters have a special purpose and will not be displayed as expected. You may skip them or display them differently. You may need to use for-loops (learn in Internet how).
- using System;
- using System.Text;
- class PrintASCIItable
- {
- static void Main()
- {
- Console.OutputEncoding = Encoding.Unicode;
- for (int i = 0; i <= 255; i++)
- {
- char symbol = (char)i;
- Console.WriteLine("ASCII symbol {0} and number {1}", symbol, i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement