+ 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

27th Dec 2016, 2:59 PM
hariom
2 odpowiedzi
+ 2
for (int i = 0; i < n; i++) { some code; }
7th Jan 2017, 9:30 AM
Brendan Rovholo
Brendan Rovholo - avatar
+ 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++) { } }
13th Jan 2017, 7:48 PM
Parth
Parth - avatar