miroslavbstoyanov

Untitled

Oct 25th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _03.Unicode_Characters
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. char[] input = Console.ReadLine().ToCharArray();
  14.  
  15. for (int i = 0; i < input.Length; i++)
  16. {
  17. int number = (int)input[i];
  18. string hexValue = number.ToString("X");
  19. Console.Write("\\u00{0}", hexValue.ToLower());
  20. }
  21. Console.WriteLine();
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment