Advertisement
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.Text.RegularExpressions;
- namespace shano
- {
- class Program
- {
- static void Main(string[] args)
- {
- Dictionary<string, int> message = new Dictionary<string, int>();
- for (int i = 0; i <= 127; i++)
- {
- message.Add(Convert.ToChar(i).ToString(), i);
- }
- string inputText = Console.ReadLine();
- string[] inputParameter = new string[inputText.Length];
- //pylnim masiva
- for (int i = 0; i < inputText.Length; i++)
- {
- inputParameter[i] = inputText[i].ToString();
- if (message.ContainsKey(inputParameter[i]))
- {
- Console.Write(message[inputParameter[i]] + " ");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement