private void ResultStage() { Console.WriteLine("Show matrices? y/n"); ConsoleKey answer = Console.ReadKey(true).Key; //A1, A2, B2, C2, A, b1, c1, bi, Y3, y1, y2, Y3squared, Y3cubed if (answer == ConsoleKey.Y) { Console.WriteLine("Matrices:"); A1.ShowMatrix("A1"); A2.ShowMatrix("A2"); B2.ShowMatrix("B2"); C2.ShowMatrix("C2"); A.ShowMatrix("A"); b1.ShowMatrix("b1"); c1.ShowMatrix("c1"); bi.ShowMatrix("bi"); Y3.ShowMatrix("Y3"); y1.ShowMatrix("y1"); y2.ShowMatrix("y2"); result.ShowMatrix("result"); } Console.WriteLine("Press any key to exit..."); Console.ReadKey(); }
private void Final() { Console.WriteLine("Show all? y/n"); ConsoleKey response = Console.ReadKey(true).Key; if (response == ConsoleKey.Y) { Console.WriteLine("If started"); A1.ShowMatrix("A1"); A2.ShowMatrix("A2"); B2.ShowMatrix("B2"); C2.ShowMatrix("C2"); A.ShowMatrix("A"); b1.ShowMatrix("b1"); c1.ShowMatrix("c1"); b.ShowMatrix("b"); Y3.ShowMatrix("Y3"); y1.ShowMatrix("y1"); y2.ShowMatrix("y2"); result.ShowMatrix("result"); Console.WriteLine("If ended"); } Console.WriteLine("Press enter to exit"); while (Console.ReadKey().Key != ConsoleKey.Enter) { } }