Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*
- * Declare a character variable and assign it with the symbol that has
- * Unicode code 42 (decimal) using the '\u00XX' syntax, and then print it
- */
- class UnicodeCharacter
- {
- static void Main()
- {
- char number = '\u002A';
- Console.WriteLine(" The symbol is {0}\n The ASCII code of {0} is {1}",number,(int)number);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement