Advertisement
kuruku

CharToInt

Apr 16th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System;
  2.  
  3. //Declare a character variable and assign it with the symbol that has Unicode code 72, and then print it. Hint:
  4. //first, use the Windows Calculator to find the hexadecimal representation of 72. The output should be “H”.
  5.  
  6. class CharToInt
  7. {
  8.     static void Main()
  9.     {
  10.         Console.WriteLine((char)72);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement