Skip to content

Instantly share code, notes, and snippets.

@rohanjai777
Last active September 14, 2023 18:15
Show Gist options
  • Save rohanjai777/8288aae29acfd96fd7cc4b5deaefdbd0 to your computer and use it in GitHub Desktop.
Save rohanjai777/8288aae29acfd96fd7cc4b5deaefdbd0 to your computer and use it in GitHub Desktop.
for(int i=0;i<m;i++){ //row wise
for(int j=0;j<n;j++){
// matrix[i][j])
}
}
for(int i=0;i<n;i++){ //column wise
for(int j=0;j<m;j++){
// matrix[j][i]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment