Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- do
- {
- Circle[][] A = null;
- while (A == null)
- {
- int M = GetInt("количество строк матрицы");
- int N = GetInt("количество столбцов матрицы");
- try
- {
- A = Methods.CreateMatrix(M, N);
- }
- catch (ArgumentOutOfRangeException ex)
- {
- Console.WriteLine("\n" + ex.Message);
- }
- }
- bool[][] F = Methods.GetAttributesMatrix(A);
- int[] B = Methods.TrueInRows(F);
- Methods.PrintAll(A, F, B);
- Console.WriteLine("\nДля выхода из программы нажмите ESC...\nДля запуска сначала - любую клавишу....");
- } while (Console.ReadKey().Key != ConsoleKey.Escape);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement