public static void Main()
Console.WriteLine("Bài 354: Kiểm tra các giá trị trong ma trận có giảm dần theo dòng và cột hay không");
if(kiemtragiamdancot(A) == true && kiemtragiamdancot(A) == true)
Console.WriteLine("Các giá trị trong ma trận có giảm dần theo dòng và cột");
else Console.WriteLine("Các giá trị trong ma trận không giảm dần theo dòng và cột");
static int [,] nhapmatran()
Console.Write("Nhập số hàng = ");
int n = int.Parse(Console.ReadLine());
Console.Write("Nhập số cột = ");
int m = int.Parse(Console.ReadLine());
for(int i = 0;i<A.GetLength(0);i++)
for(int j = 0;j<A.GetLength(1);j++)
Console.Write($"A[{i}][{j}] = ");
A[i, j] = int.Parse(Console.ReadLine());
static bool kiemtragiamdancot(int [,] A)
for (int i = 0; i < A.GetLength(0) - 1; i++)
static bool kiemtragiamdandong(int [,] A)
for (int j = 0; j < A.GetLength(1)-1; j++)