diff --git a/data-structures/TripletRepresentationofSparseMatrix.cpp b/data-structures/TripletRepresentationofSparseMatrix.cpp new file mode 100644 index 00000000..9adad0ff --- /dev/null +++ b/data-structures/TripletRepresentationofSparseMatrix.cpp @@ -0,0 +1,41 @@ +#include +using namespace std; +int main() +{int row,column,i,j; +printf("enter no. of rows and columns:"); +scanf("%d %d",&row,&column); +int a[row][column]; +for(i=0;i