Yes, since the variable j is being initialized in the for loop, it would start from 2 and scale up. The 7%2,7%3,7%4 would happen. However for the first time when i=2, it will not enter the inner loop as j!<i that is 2 is not <2. Hence 2 would be printed directly.
-eNJay
|