Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace coding
- {
- class Program
- {
- static void Main(string[] args)
- {
- string num = Console.ReadLine();
- int length = num.Length;
- for (int i = length - 1; i >= 0; i--)
- {
- char currentChar = num[i];
- int currentInt = int.Parse(currentChar.ToString());
- if (currentInt == 0)
- {
- Console.WriteLine("ZERO");
- continue;
- }
- for (int j = 1; j <= currentInt; j++)
- {
- Console.Write((char)(currentInt + 33));
- }
- Console.WriteLine();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment