Hello,
I was wondering how I could use a continue statement that continues in a nested loop.
For example if I have
1 2 3 4 5 6 7 8 9
for (int i=0;i<amount;i++) {
for (int j=0;j<I[i];j++) {
for (int k=j+1;k<I[i];k++) {
if (P[i][j]+P[i][k]==C[i]) {
//What should be here?
}
}
}
}
If the condition is met then the most outer loop (in i) should continue to the next iteration.
If i simply fill in continue; in before the comment then it only continues the loop in k so that is not what I want.
Can anyone help me out please?
Thanks in advance,
Jannes