예제 #1
0
 private static void PromptMatrix(string text, Macierz.Macierz m)
 {
     Console.WriteLine("\n " + text + ": ");
     Console.WriteLine("Dimensions: " + m.GetLength(0) + " x " + m.GetLength(1));
     Console.WriteLine(m.ToString());
     Console.WriteLine("Sum of all cells: " + m.Sum());
 }
예제 #2
0
 private static void PromptMatrix(char symbol, Macierz.Macierz m)
 {
     if (m.IsZero)
     {
         Console.WriteLine("\n Matrix " + symbol + " is empty.");
     }
     else
     {
         Console.WriteLine("\n Matrix " + symbol + ": ");
         Console.WriteLine("Dimensions: " + m.GetLength(0) + " x " + m.GetLength(1));
         Console.WriteLine(m.ToString());
         Console.WriteLine("Sum of all cells: " + m.Sum());
     }
 }