Hello there.i have to find if elements of a row are equal to elements of another row.this is my code but it wont work.
when k becomes 1, i want the for loop at i to start with i=2; can you help ?????
int b[][]={
{1,2,23,4,5},
{6,1,8,9,28},
{11,12,13,14,15},
{1,17,18,19,20},};
for(int k=0;k<3;i++){// when k increases with 1 i want also i to increase with 1.meaning, when k becomes 1, for loop with start with i=2;
for(int l=0;l<5;l++){
for(int i=1;i<4;i++){
for(int j=0;j<5;j++){
if(b[k][l]==b[i][j]){
System.out.print(b[k][l]+" ");
}
}
}
}
}
}
}