Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- string strN = n.ToString();
- for (int i=0; i<strN.Length; i++)
- {
- int number = n%10;
- int lastDigit = n/10;
- n=lastDigit;
- if (number==0)
- {
- Console.Write("ZERO");
- }
- for (int z=0; z<number; z++)
- {
- int ascii = number +33;
- char symbol = (char) ascii;
- Console.Write(symbol);
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement