C - Loops
Identify the error in this nested loop code:
for(int i=0; i<2; i++) {
for(int j=0; j<2; j++)
printf("%d %d\n", i, j);
i++;
}for(int i=0; i<2; i++) {
for(int j=0; j<2; j++)
printf("%d %d\n", i, j);
i++;
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions