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.Кодиране
- {
- class Program
- {
- static void Main(string[] args)
- {
- string number = Console.ReadLine();
- for (int i = number.Length - 1; i >= 0; i--)
- {
- char currentDigit = number[i];
- int currnetDigitToNum = int.Parse(currentDigit.ToString());
- if (currnetDigitToNum == 0)
- {
- Console.WriteLine("ZERO");
- continue;
- }
- for (int n = 1; n <= currnetDigitToNum; n++)
- {
- Console.Write((char)(currnetDigitToNum + 33));
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement