I have the following code:
int x = 100; //Or some other value
while(x > 0) {
for(int i = 5; i > 0; i++) {
x = x-2;
if(x == 0)
break;
}
}
However, this will only break the for loop. How can I have it so that it breaks both the for and the while loops?
Cheers!