+ 1
I don't know how to create an structure of looping on basis of i and j ?
please give me a suitable answer of this to clearly understand
2 Respostas
+ 2
for (int i = 0; i < n; i++)
{
some code;
}
+ 1
I and j are used as counter variables. These are used when we want to execute nested loop
eg:-
int I, j;
for(i=0; i<3;i++)
{
for(j=0;j<3;j++)
{
}
}