Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _03.Unicode_Characters
- {
- class Program
- {
- static void Main(string[] args)
- {
- char[] input = Console.ReadLine().ToCharArray();
- for (int i = 0; i < input.Length; i++)
- {
- int number = (int)input[i];
- string hexValue = number.ToString("X");
- Console.Write("\\u00{0}", hexValue.ToLower());
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment