Нахождение минора - C#
Формулировка задачи:
Хотел бы у вас посоветоваться. Как можно вывести массив дальше, чтоб найти минор? в данном случае я искал минор на определенный размер матрицы, но как искать его на неопределенный я не знаю. кто может, напишите пожалуйста "тег" или просто команду, которая может помочь или просто способ, как сделать. буду благодарен.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32
{
class Program
{
static void Main(string[] args)
{
int[,] A = new int[3, 3];
int i, j;
int k = int.Parse(Console.ReadLine());
int l = int.Parse(Console.ReadLine());
Console.WriteLine("Ввод массива");
for (i = 0; i < 3; i++)
{
for (j = 0; j < 3; j++)
{ A[i, j] = Convert.ToInt32(Console.ReadLine()); }
}
for (i = 0; i < 3; i++)
{
for (j = 0; j < 3; j++)
{
if ((i != k) & (j != l))
{
Console.WriteLine(A[i,j]);
}
}
}
Console.ReadLine();
}
}
}Решение задачи: «Нахождение минора»
textual
Листинг программы
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32
{
class Program
{
static void Main(string[] args)
{
int k = int.Parse(Console.ReadLine());
int l = int.Parse(Console.ReadLine());
Console.WriteLine("Размер массива (N, M)");
int n = int.Parse(Console.ReadLine());
int m = int.Parse(Console.ReadLine());
Console.WriteLine("Ввод массива");
int[,] A = new int[n, m];
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
A[i, j] = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++)
for (int j = 0; j < m; j++)
if ((i != k) & (j != l))
Console.WriteLine(A[i, j]);
Console.ReadLine();
}
}
}