VitalyD

Untitled

Nov 15th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.35 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 (var x = 0; x < number.Length; x++)
  23.                      {
  24.                          num = Convert.ToInt32(number[x].ToString());
  25.                      
  26.                      
  27.                          for (int j = 0; j <= 4; j++)
  28.                          {
  29.                              Console.WriteLine(bigNum[j, num]);
  30.                          }
  31.                      }
  32.                  }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment