#include<stdio.h>
int main()
{
int n,m;
printf("Enter values of matrix 1: \n"); int array1[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf("%d", &array1
[i
][j
]); }
}
printf("Enter values of matrix 2: \n"); int array2[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf("%d", &array2
[i
][j
]); }
}
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(array1[i][j] != array2[i][j]){
printf("Matrix is not same."); return 0;
}
}
}
printf("Both Matrix is same."); }
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4oKQp7CiAgICBpbnQgbixtOwogICAgc2NhbmYoIiVkICVkIiwgJm4sICZtKTsKICAgIHByaW50ZigiRW50ZXIgdmFsdWVzIG9mIG1hdHJpeCAxOiBcbiIpOwogICAgaW50IGFycmF5MVtuXVttXTsKICAgIGZvcihpbnQgaT0wOyBpPG47IGkrKyl7CiAgICAgICAgZm9yKGludCBqPTA7IGo8bTsgaisrKXsKICAgICAgICAgICAgc2NhbmYoIiVkIiwgJmFycmF5MVtpXVtqXSk7CiAgICAgICAgfQogICAgfQogICAgcHJpbnRmKCJFbnRlciB2YWx1ZXMgb2YgbWF0cml4IDI6IFxuIik7CiAgICBpbnQgYXJyYXkyW25dW21dOwogICAgZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKICAgICAgICBmb3IoaW50IGo9MDsgajxtOyBqKyspewogICAgICAgICAgICBzY2FuZigiJWQiLCAmYXJyYXkyW2ldW2pdKTsKICAgICAgICB9CiAgICB9CgogICAgZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKICAgICAgICBmb3IoaW50IGo9MDsgajxtOyBqKyspewogICAgICAgICAgICBpZihhcnJheTFbaV1bal0gIT0gYXJyYXkyW2ldW2pdKXsKICAgICAgICAgICAgICAgIHByaW50ZigiTWF0cml4IGlzIG5vdCBzYW1lLiIpOwogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBwcmludGYoIkJvdGggTWF0cml4IGlzIHNhbWUuIik7Cn0KCg==