0
How for loop is done if we use more loop? if You Know Give Example.
4 odpowiedzi
+ 1
You have to change the name of the index, usually in this order: i, j, k. Here is an example:
for(int i = 0; i < 5; i++) {
for(int j = 0; j < 5; j++) {
//Some code...
//Here you can use both i and j
}
//Here you should use only i, not j
}
0
What do you mean? You want to replicate the for loop with another type of loop, or you want to nest a for loop inside a for loop?
0
yes nested loop.
0
ok Thank's