nested loops and start or its condition with parent loop
I search to stable formula When i see nested loops, i can say their answer quickly. such as:
1 2 3
|
for (i = 0; i< 5; i++)
for (j = i ; j < 10; j++)
cout "C"; //When nested loop start with variable of parent loop
|
And
1 2 3
|
for (i = 0; i< 5; i++)
for (j = 0 ; j < i; j++)
cout "C"; //When nested loop start with fixed number and less or gather than of parent loop
|
And what your Q is?
Topic archived. No new replies allowed.