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 _4.Coding
- {
- class Program
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- int lenghtOfNum = number.ToString().Length;
- for (int a = 0; a < lenghtOfNum; a++)
- {
- int lastNum = number % 10;
- if (lastNum != 0)
- {
- for (int b = 0; b < lastNum; b++)
- {
- Console.Write((char)(lastNum + 33));
- }
- Console.WriteLine();
- }
- else
- {
- Console.WriteLine("ZERO");
- }
- number = number / 10;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement