Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- class ASCII_Table
- {
- static void Main()
- {
- Console.OutputEncoding = Encoding.Unicode;
- Console.WriteLine("ASCII table from 0 to 128");
- for (int i = 0; i < 128; i++)
- {
- Console.WriteLine("{0}. {1}",i, (char)i); // ASCII Table
- }
- Console.WriteLine("\n\nExtended ASCII table from 128 to 255");
- for (int extend = 128; extend <= 255; extend++)
- {
- Console.WriteLine("{0}. {1}",extend, (char)extend);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment