/*A sparse matrix is a matrix which has number of zeroes greater than (m*n)/2, where m and n are the dimensions of the matrix.*/ #include int main() { int m,n,i,j,c=0; cout << "Enter dimensions of matrix:"; cin >> m >> n; int a[m][n]; cout << "Enter matrix elements:"; for(i=0;> a[i][j]; } for(i=0;i((m*n)/2)) //Checking for sparse matrix cout << "Sparse matrix"; else cout << "Not a sparse matrix"; }