Advertisement
AnitaN

02.PrimitiveDataTypesVariables/05.UnicodeValue

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