Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     static void Main()
  2.     {
  3.         do
  4.         {
  5.             Circle[][] A = null;
  6.             while (A == null)
  7.             {
  8.                 int M = GetInt("количество строк матрицы");
  9.                 int N = GetInt("количество столбцов матрицы");
  10.                 try
  11.                 {
  12.                     A = Methods.CreateMatrix(M, N);
  13.                 }
  14.                 catch (ArgumentOutOfRangeException ex)
  15.                 {
  16.                     Console.WriteLine("\n" + ex.Message);
  17.                 }
  18.             }
  19.  
  20.             bool[][] F = Methods.GetAttributesMatrix(A);
  21.             int[] B = Methods.TrueInRows(F);
  22.             Methods.PrintAll(A, F, B);
  23.  
  24.             Console.WriteLine("\nДля выхода из программы нажмите  ESC...\nДля запуска сначала - любую клавишу....");
  25.         } while (Console.ReadKey().Key != ConsoleKey.Escape);
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement