fork download
  1. using System.IO;
  2. using System;
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. char[] characters = new char[]{'F','G','H'};
  8. foreach (char c in characters)
  9. {
  10. int x =(int)c;
  11. Console.WriteLine("when X\"\" =>--{0}",c);
  12. Console.WriteLine("ascii <= D\"{0:X}\";", x);
  13. }
  14. }
  15. }
  16.  
  17.  
Success #stdin #stdout 0.01s 131776KB
stdin
Standard input is empty
stdout
when X"" =>--F
ascii <= D"46";
when X"" =>--G
ascii <= D"47";
when X"" =>--H
ascii <= D"48";