Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 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). */
- namespace _14.PrintTheASCIITable
- {
- using System;
- using System.Text;
- public class PrintTheASCIITable
- {
- public static void Main(string[] args)
- {
- Console.OutputEncoding = Encoding.Unicode;
- checked
- {
- Console.WriteLine("The entire ASCII Table of characters from 0 to 255 is:");
- Console.WriteLine();
- for (int i = 0; i <= 255; i++)
- {
- char symbol = (char)i;
- Console.WriteLine("ASCII Symbol {0,3} --> {1,2}", i, symbol);
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement