fork download
  1. using System;
  2. using System.Text;
  3.  
  4. namespace PrintAsciiTable
  5. {
  6. class PrintAsciiTable
  7. {
  8. static void Main(string[] args)
  9. {
  10. byte currentSymbol;
  11. //skip first 32 symbols since they can't be printed
  12. for (currentSymbol = 32; currentSymbol < 127; currentSymbol++)
  13. {
  14. Console.WriteLine("The {0}-th symbol in the ASCII table is:{1}",currentSymbol,(char)currentSymbol);
  15. }
  16. //Print the extended ASCII as it is shown on www.asciitable.com
  17. Encoding encodingForAscii = Encoding.GetEncoding(437);
  18. byte[] extendedAsciiCodes = new byte[128];
  19. for (byte currentCode = 128; currentCode < 255; currentCode++)
  20. {
  21. extendedAsciiCodes[currentCode - 128] = currentCode;
  22. }
  23. char[] extendedAsciiSymbols = encodingForAscii.GetChars(extendedAsciiCodes);
  24. for (byte current = 0; current < extendedAsciiSymbols.Length; current++)
  25. {
  26. Console.WriteLine("The {0}-th symbol in the extended ASCII table is: {1}", current+128,extendedAsciiSymbols[current]);
  27. }
  28. }
  29. }
  30. }
  31.  
Success #stdin #stdout 0.01s 30096KB
stdin
Standard input is empty
stdout
The 32-th symbol in the ASCII table is: 
The 33-th symbol in the ASCII table is:!
The 34-th symbol in the ASCII table is:"
The 35-th symbol in the ASCII table is:#
The 36-th symbol in the ASCII table is:$
The 37-th symbol in the ASCII table is:%
The 38-th symbol in the ASCII table is:&
The 39-th symbol in the ASCII table is:'
The 40-th symbol in the ASCII table is:(
The 41-th symbol in the ASCII table is:)
The 42-th symbol in the ASCII table is:*
The 43-th symbol in the ASCII table is:+
The 44-th symbol in the ASCII table is:,
The 45-th symbol in the ASCII table is:-
The 46-th symbol in the ASCII table is:.
The 47-th symbol in the ASCII table is:/
The 48-th symbol in the ASCII table is:0
The 49-th symbol in the ASCII table is:1
The 50-th symbol in the ASCII table is:2
The 51-th symbol in the ASCII table is:3
The 52-th symbol in the ASCII table is:4
The 53-th symbol in the ASCII table is:5
The 54-th symbol in the ASCII table is:6
The 55-th symbol in the ASCII table is:7
The 56-th symbol in the ASCII table is:8
The 57-th symbol in the ASCII table is:9
The 58-th symbol in the ASCII table is::
The 59-th symbol in the ASCII table is:;
The 60-th symbol in the ASCII table is:<
The 61-th symbol in the ASCII table is:=
The 62-th symbol in the ASCII table is:>
The 63-th symbol in the ASCII table is:?
The 64-th symbol in the ASCII table is:@
The 65-th symbol in the ASCII table is:A
The 66-th symbol in the ASCII table is:B
The 67-th symbol in the ASCII table is:C
The 68-th symbol in the ASCII table is:D
The 69-th symbol in the ASCII table is:E
The 70-th symbol in the ASCII table is:F
The 71-th symbol in the ASCII table is:G
The 72-th symbol in the ASCII table is:H
The 73-th symbol in the ASCII table is:I
The 74-th symbol in the ASCII table is:J
The 75-th symbol in the ASCII table is:K
The 76-th symbol in the ASCII table is:L
The 77-th symbol in the ASCII table is:M
The 78-th symbol in the ASCII table is:N
The 79-th symbol in the ASCII table is:O
The 80-th symbol in the ASCII table is:P
The 81-th symbol in the ASCII table is:Q
The 82-th symbol in the ASCII table is:R
The 83-th symbol in the ASCII table is:S
The 84-th symbol in the ASCII table is:T
The 85-th symbol in the ASCII table is:U
The 86-th symbol in the ASCII table is:V
The 87-th symbol in the ASCII table is:W
The 88-th symbol in the ASCII table is:X
The 89-th symbol in the ASCII table is:Y
The 90-th symbol in the ASCII table is:Z
The 91-th symbol in the ASCII table is:[
The 92-th symbol in the ASCII table is:\
The 93-th symbol in the ASCII table is:]
The 94-th symbol in the ASCII table is:^
The 95-th symbol in the ASCII table is:_
The 96-th symbol in the ASCII table is:`
The 97-th symbol in the ASCII table is:a
The 98-th symbol in the ASCII table is:b
The 99-th symbol in the ASCII table is:c
The 100-th symbol in the ASCII table is:d
The 101-th symbol in the ASCII table is:e
The 102-th symbol in the ASCII table is:f
The 103-th symbol in the ASCII table is:g
The 104-th symbol in the ASCII table is:h
The 105-th symbol in the ASCII table is:i
The 106-th symbol in the ASCII table is:j
The 107-th symbol in the ASCII table is:k
The 108-th symbol in the ASCII table is:l
The 109-th symbol in the ASCII table is:m
The 110-th symbol in the ASCII table is:n
The 111-th symbol in the ASCII table is:o
The 112-th symbol in the ASCII table is:p
The 113-th symbol in the ASCII table is:q
The 114-th symbol in the ASCII table is:r
The 115-th symbol in the ASCII table is:s
The 116-th symbol in the ASCII table is:t
The 117-th symbol in the ASCII table is:u
The 118-th symbol in the ASCII table is:v
The 119-th symbol in the ASCII table is:w
The 120-th symbol in the ASCII table is:x
The 121-th symbol in the ASCII table is:y
The 122-th symbol in the ASCII table is:z
The 123-th symbol in the ASCII table is:{
The 124-th symbol in the ASCII table is:|
The 125-th symbol in the ASCII table is:}
The 126-th symbol in the ASCII table is:~
The 128-th symbol in the extended ASCII table is: Ç
The 129-th symbol in the extended ASCII table is: ü
The 130-th symbol in the extended ASCII table is: é
The 131-th symbol in the extended ASCII table is: â
The 132-th symbol in the extended ASCII table is: ä
The 133-th symbol in the extended ASCII table is: à
The 134-th symbol in the extended ASCII table is: å
The 135-th symbol in the extended ASCII table is: ç
The 136-th symbol in the extended ASCII table is: ê
The 137-th symbol in the extended ASCII table is: ë
The 138-th symbol in the extended ASCII table is: è
The 139-th symbol in the extended ASCII table is: ï
The 140-th symbol in the extended ASCII table is: î
The 141-th symbol in the extended ASCII table is: ì
The 142-th symbol in the extended ASCII table is: Ä
The 143-th symbol in the extended ASCII table is: Å
The 144-th symbol in the extended ASCII table is: É
The 145-th symbol in the extended ASCII table is: æ
The 146-th symbol in the extended ASCII table is: Æ
The 147-th symbol in the extended ASCII table is: ô
The 148-th symbol in the extended ASCII table is: ö
The 149-th symbol in the extended ASCII table is: ò
The 150-th symbol in the extended ASCII table is: û
The 151-th symbol in the extended ASCII table is: ù
The 152-th symbol in the extended ASCII table is: ÿ
The 153-th symbol in the extended ASCII table is: Ö
The 154-th symbol in the extended ASCII table is: Ü
The 155-th symbol in the extended ASCII table is: ¢
The 156-th symbol in the extended ASCII table is: £
The 157-th symbol in the extended ASCII table is: ¥
The 158-th symbol in the extended ASCII table is: ₧
The 159-th symbol in the extended ASCII table is: ƒ
The 160-th symbol in the extended ASCII table is: á
The 161-th symbol in the extended ASCII table is: í
The 162-th symbol in the extended ASCII table is: ó
The 163-th symbol in the extended ASCII table is: ú
The 164-th symbol in the extended ASCII table is: ñ
The 165-th symbol in the extended ASCII table is: Ñ
The 166-th symbol in the extended ASCII table is: ª
The 167-th symbol in the extended ASCII table is: º
The 168-th symbol in the extended ASCII table is: ¿
The 169-th symbol in the extended ASCII table is: ⌐
The 170-th symbol in the extended ASCII table is: ¬
The 171-th symbol in the extended ASCII table is: ½
The 172-th symbol in the extended ASCII table is: ¼
The 173-th symbol in the extended ASCII table is: ¡
The 174-th symbol in the extended ASCII table is: «
The 175-th symbol in the extended ASCII table is: »
The 176-th symbol in the extended ASCII table is: ░
The 177-th symbol in the extended ASCII table is: ▒
The 178-th symbol in the extended ASCII table is: ▓
The 179-th symbol in the extended ASCII table is: │
The 180-th symbol in the extended ASCII table is: ┤
The 181-th symbol in the extended ASCII table is: ╡
The 182-th symbol in the extended ASCII table is: ╢
The 183-th symbol in the extended ASCII table is: ╖
The 184-th symbol in the extended ASCII table is: ╕
The 185-th symbol in the extended ASCII table is: ╣
The 186-th symbol in the extended ASCII table is: ║
The 187-th symbol in the extended ASCII table is: ╗
The 188-th symbol in the extended ASCII table is: ╝
The 189-th symbol in the extended ASCII table is: ╜
The 190-th symbol in the extended ASCII table is: ╛
The 191-th symbol in the extended ASCII table is: ┐
The 192-th symbol in the extended ASCII table is: └
The 193-th symbol in the extended ASCII table is: ┴
The 194-th symbol in the extended ASCII table is: ┬
The 195-th symbol in the extended ASCII table is: ├
The 196-th symbol in the extended ASCII table is: ─
The 197-th symbol in the extended ASCII table is: ┼
The 198-th symbol in the extended ASCII table is: ╞
The 199-th symbol in the extended ASCII table is: ╟
The 200-th symbol in the extended ASCII table is: ╚
The 201-th symbol in the extended ASCII table is: ╔
The 202-th symbol in the extended ASCII table is: ╩
The 203-th symbol in the extended ASCII table is: ╦
The 204-th symbol in the extended ASCII table is: ╠
The 205-th symbol in the extended ASCII table is: ═
The 206-th symbol in the extended ASCII table is: ╬
The 207-th symbol in the extended ASCII table is: ╧
The 208-th symbol in the extended ASCII table is: ╨
The 209-th symbol in the extended ASCII table is: ╤
The 210-th symbol in the extended ASCII table is: ╥
The 211-th symbol in the extended ASCII table is: ╙
The 212-th symbol in the extended ASCII table is: ╘
The 213-th symbol in the extended ASCII table is: ╒
The 214-th symbol in the extended ASCII table is: ╓
The 215-th symbol in the extended ASCII table is: ╫
The 216-th symbol in the extended ASCII table is: ╪
The 217-th symbol in the extended ASCII table is: ┘
The 218-th symbol in the extended ASCII table is: ┌
The 219-th symbol in the extended ASCII table is: █
The 220-th symbol in the extended ASCII table is: ▄
The 221-th symbol in the extended ASCII table is: ▌
The 222-th symbol in the extended ASCII table is: ▐
The 223-th symbol in the extended ASCII table is: ▀
The 224-th symbol in the extended ASCII table is: α
The 225-th symbol in the extended ASCII table is: ß
The 226-th symbol in the extended ASCII table is: Γ
The 227-th symbol in the extended ASCII table is: π
The 228-th symbol in the extended ASCII table is: Σ
The 229-th symbol in the extended ASCII table is: σ
The 230-th symbol in the extended ASCII table is: µ
The 231-th symbol in the extended ASCII table is: τ
The 232-th symbol in the extended ASCII table is: Φ
The 233-th symbol in the extended ASCII table is: Θ
The 234-th symbol in the extended ASCII table is: Ω
The 235-th symbol in the extended ASCII table is: δ
The 236-th symbol in the extended ASCII table is: ∞
The 237-th symbol in the extended ASCII table is: φ
The 238-th symbol in the extended ASCII table is: ε
The 239-th symbol in the extended ASCII table is: ∩
The 240-th symbol in the extended ASCII table is: ≡
The 241-th symbol in the extended ASCII table is: ±
The 242-th symbol in the extended ASCII table is: ≥
The 243-th symbol in the extended ASCII table is: ≤
The 244-th symbol in the extended ASCII table is: ⌠
The 245-th symbol in the extended ASCII table is: ⌡
The 246-th symbol in the extended ASCII table is: ÷
The 247-th symbol in the extended ASCII table is: ≈
The 248-th symbol in the extended ASCII table is: °
The 249-th symbol in the extended ASCII table is: ∙
The 250-th symbol in the extended ASCII table is: ·
The 251-th symbol in the extended ASCII table is: √
The 252-th symbol in the extended ASCII table is: ⁿ
The 253-th symbol in the extended ASCII table is: ²
The 254-th symbol in the extended ASCII table is: ■
The 255-th symbol in the extended ASCII table is: