using System;
public class Program
{
static string Afficher(int[,] m)
{
string lignePleine = new string('-', m.GetLength(1) * 6 + 1);
var result = "";
for (int ligne = 0; ligne < m.GetLength(0); ++ligne)
{
result = string.Concat(result, lignePleine + "\n" + "|");
for (int colonne = 0; colonne < m.GetLength(1); ++colonne)
{
result = string.Concat(result, $"{m[ligne, colonne],3} |");
}
result = string.Concat(result, "\n");
}
result = string.Concat(result, lignePleine + '\n');
return result;
}
public static void Main(string[] args)
{
int[,] matrice = new int[5, 5];
Console.WriteLine(Afficher(matrice));
}
}