VitalyD

Untitled

Nov 15th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Security.Cryptography.X509Certificates;
  4.  
  5. namespace convert
  6. {
  7.     internal class Program
  8.     {
  9.         public static void Main(string[] args)
  10.         {
  11.             string number;
  12.             int num;
  13.             string [,] bigNum =  {{"***", "*", "***", "***", "* *", "***", "*  ", "***", "***", "***"},
  14.                                   {"* *", "*", "  *", "  *", "* *", "*  ", "*  ", "  *", "* *", "* *"},
  15.                                   {"* *", "*", "***", "** ", "***", "***", "***", "  *", "***", "***"},
  16.                                   {"* *", "*", "*  ", "  *", "  *", "  *", "* *", "  *", "* *", "  *"},
  17.                                   {"***", "*", "***", "***", "  *", "***", "***", "  *", "***", "***"}};
  18.          
  19.          
  20.             number = Console.ReadLine();
  21.          
  22.             for (int j = 0; j < 5; j++)
  23.             {
  24.                 for (var x = 0; x < number.Length; x++)
  25.                 {
  26.                     num = Convert.ToInt32(number[x].ToString());
  27.                     Console.Write(bigNum[j, num]);
  28.                     Console.Write("  ");
  29.                    
  30.                 }
  31.                 Console.WriteLine();
  32.             }
  33.         }
  34.     }
  35. }
Add Comment
Please, Sign In to add comment