0
I don't understand c++
Can u help me :( Void main() Int a[3][3]= {{1,2,3},{4 ,5, 6},{7,8,9}}; Int n=3,i,j; For(i=1;i<n;i++) For(j=1;j<n;j++) If(i%j==0) cout<<a[i][j]<<endl; } The output is 5 8 9 The q is what is i and j?
4 odpowiedzi
+ 5
its better for you to start learn lessons provided by solo learn .
now, the updated versions of C and C++ lessons are there
+ 4
Razan Rosie
Well i and j is a fish company:
http://www.ij.co.za/
Seriously, as Ace explained, they're used to index the 2D array.
Nirkasder
int n=3;
This declares a variable called n of int type and assigns it a value of 3 (initialization).
int i,j;
Creates two variables of int type (no initialization).
Sooo:
int n=3,i,j;
Does all the above!
0
int n=3,i,j;
What is it???
I can not understand what program you wanted to write