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.Threading.Tasks;
- namespace _3._3_Кодиране
- {
- class Program
- {
- static void Main(string[] args)
- {
- var n = int.Parse(Console.ReadLine());
- string n4islo = n.ToString();//2049
- int curentNum = 0;
- char ch = ' ';
- for (int i =0; i < n4islo.Length; i++)
- {
- curentNum = n % 10;
- n /= 10;
- if (curentNum==0)
- {
- Console.Write("ZERO");
- }
- int charCurentNum= curentNum+33;
- ch = (char)charCurentNum;
- for (int j = 0; j < curentNum; j++)
- {
- Console.Write(ch);
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement