Advertisement
anizko

03. Coding

Apr 19th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Coding
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string Number = Console.ReadLine();
  10.            
  11.  
  12.             for(int i=Number.Length-1;i>=0; i--)
  13.             {
  14.                 char Symbol = Number[i];
  15.                 int IntAllNum = int.Parse(Symbol.ToString());
  16.                 if (IntAllNum == 0)
  17.                 {
  18.                     Console.Write("ZERO");
  19.                 }
  20.  
  21.                 for (int j = 0; j < IntAllNum; j++)
  22.                 {
  23.              
  24.                     Console.Write((char)(IntAllNum + 33));
  25.      
  26.                 }
  27.                 Console.WriteLine();
  28.  
  29.             }
  30.  
  31.          
  32.            
  33.  
  34.  
  35.  
  36.            
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement