Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Others
- {
- class Program
- {
- static void Main(string[] args)
- {
- var n = int.Parse(Console.ReadLine());
- //
- string[] arrAlpha = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", " " };
- string[] arrNum = { "2", "22", "222", "3", "33", "333", "4", "44", "444", "5", "55", "555", "6", "66", "666", "7", "77", "777", "7777", "8", "88", "888", "9", "99", "999", "9999", "0" };
- var str = "";
- for (int i = 0; i < n; i++)
- {
- var typeNumber = (Console.ReadLine());
- //
- for (int k = 0; k < arrNum.Length; k++)
- {
- if (typeNumber == arrNum[k])
- {
- str += arrAlpha[k];
- }
- }
- }
- Console.WriteLine(str);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement