All Questions
1 question
-5
votes
1
answer
1k
views
How do I manage multiple nested for-loops without using multiple variables?
If I have code that looks like this:
int i;
void functionA (){
for (i=0; i<10; i++){
functionB();
}
}
void functionB (){
for (i=0; i<20; i++){
doSomething();
}
}
...