Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //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).
- class PrintASCII
- {
- static void Main(string[] args)
- {
- char a;
- for (int i = 0; i < 255; i++)
- {
- int unicode = i;
- char character = (char)unicode;
- string text = character.ToString();
- Console.Write("{0}, ", text);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement