Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _03._Coding
- {
- class Program
- {
- static void Main(string[] args)
- {
- string number = Console.ReadLine();
- int numberOfDigits = number.Length;
- int newNumber = int.Parse(number);
- int counter = 1;
- for (int i = 1; i <= numberOfDigits; i++)
- {
- int length = newNumber / counter % 10;
- if (i >1)
- {
- counter *= 10;
- length = newNumber / counter % 10;
- if (length == 0)
- {
- Console.WriteLine("ZERO");
- }
- }
- for (int j = 1; j <= length; j++)
- {
- int convert = length + 33;
- Console.Write((char)convert);
- }
- if(length != 0)
- {
- Console.WriteLine("");
- }
- length = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment