예제 #1
0
 static void Main()
 {
     MyMatrix matrix = new MyMatrix(4, 5);
     matrix.FillMatrix();
     matrix.PrintMatrix();
     Console.WriteLine("\n\nChange width: ");
     matrix.ChangeWidth(7);
     matrix.PrintMatrix();
     Console.WriteLine("\n\nChange height: ");
     matrix.ChangeHeight(10);
     matrix.PrintMatrix();
     Console.ReadKey();
 }
예제 #2
0
        static void Main()
        {
            MyMatrix matrix = new MyMatrix(4, 5);

            matrix.FillMatrix();
            matrix.PrintMatrix();
            Console.WriteLine("\n\nChange width: ");
            matrix.ChangeWidth(7);
            matrix.PrintMatrix();
            Console.WriteLine("\n\nChange height: ");
            matrix.ChangeHeight(10);
            matrix.PrintMatrix();
            Console.ReadKey();
        }