hey guys , I don't understand why the outPUT is that for the code below.. can someone please explin me how it works. Thank you.
class example{
public static void main (String[]args){
int i = 1,j;
while (i<=3){
j=i;
while(j<=4){
System.out.println(j+" "+i);
j=j+2;
}
i=i+1;
}
}
}
HERE IS THE OUTPUT
1 1
3 1
2 2
4 2
3 3