Код:
Код: Выделить всё
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication17
{
class Program
{
static void Main(string[] args)
{
var matrix = new int[3, 3];
for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++)
{
Console.WriteLine("Вводите a[{0}, {1}]:", i, j);
matrix[i, j] = int.Parse(Console.ReadLine());
if (matrix[i, j] != matrix[j, i])
Console.WriteLine("Матрица не симметрична\n");
else
Console.WriteLine("Симметрична\n");};
Console.ReadLine();
}
}
}