public static class Digital
private static int [] CreateNumber(char digit)
int[] number = new int[]{};
number = new int[]{1,0,1,1,1,1,1};
number = new int[]{0,0,0,0,1,0,1};
number = new int[]{1,1,1,0,1,1,0};
number = new int[]{1,1,1,0,1,0,1};
number = new int[]{0,1,0,1,1,0,1};
number = new int[]{1,1,1,1,0,0,1};
number = new int[]{1,1,0,1,0,1,1};
number = new int[]{0,1,1,0,1,0,1};
number = new int[]{1,1,1,1,1,1,1};
number = new int[]{0,1,1,1,1,0,1};
number = new int[]{0,0,0,0,0,0,0};
public static void ShowNumber(long number, char typeChar, int Size)
string strNumber = number.ToString();
int row = strNumber.Length;
int[,] map = new int[row, col];
for(int i = 0; i < row; i++)
int[] digit = CreateNumber(strNumber[i]);
for(int j = 0; j < col; j++) map[i,j] = digit[j];
Printing(map, typeChar, Size);
public static void Printing(int[,] map, char typeChar, int Size)
PrintingLineH(map, 2, typeChar, Size);
PrintingLineV(map, 3, typeChar, Size);
PrintingLineH(map, 1, typeChar, Size);
PrintingLineV(map, 5, typeChar, Size);
PrintingLineH(map, 0, typeChar, Size);
public static void PrintingLineH(int[,] map, int col, char typeChar, int Size)
string line = string.Empty;
for(int i = 0; i < map.GetLength(0); i++)
var c = (map[i, col] == 1)? "*******": " ";
public static void PrintingLineV(int[,] map, int col, char typeChar, int Size)
string line = string.Empty;
for(int i = 0; i < map.GetLength(0); i++)
var c = (map[i, col] == 1)? "*": " ";
var d = (map[i, col + 1 ] == 1)? "*": " ";
line = line + c + " " + d + " ";
public static void Main()
Digital.ShowNumber(7, '*', 3);