diff --git a/Algorithms/Sparse matrix.cpp b/Algorithms/Sparse matrix.cpp new file mode 100644 index 0000000..8e974db --- /dev/null +++ b/Algorithms/Sparse matrix.cpp @@ -0,0 +1,62 @@ +#include +int main() +{ + int r,c,count=0,k=0; + printf("enter the no. of Rows : "); + scanf("%d",&r); + printf("enter the no. of Rows : "); + scanf("%d",&c); + int a[r][c]; + printf("Enter the Sparse Matrix : \n"); + for(int i=0 ; i