KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I use a "goto" statement to break out of a loop for(i = 0; (i < 9); i++) { for(j = 0; j < 9; j++) { //cout << " " << Matrix[i][j]; //cout << "i: " << i << endl; if(Matrix[i][j] == 0) { //temp = 10; [goto] ; //break; } } } I wanted to keep the values at which i and j were when I left the nested for loop. How can I use a goto statement for that?
Tags (comma-separated)
Save Edits
Cancel