From 67283e0adce54bbb8f1ce56899aacdf0f4d69d5c Mon Sep 17 00:00:00 2001 From: ashwek Date: Tue, 12 Feb 2019 18:53:21 +0530 Subject: [PATCH] Removed Sparse Matrix.cpp Updated version exists at "Others/" --- Sparse matrix.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Sparse matrix.cpp diff --git a/Sparse matrix.cpp b/Sparse matrix.cpp deleted file mode 100644 index 19452dfee..000000000 --- a/Sparse matrix.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/*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"; -}