C - Loops
What is the output of the following C code?
for(int x = 0; x < 2; x++) {
for(int y = 0; y < 3; y++) {
printf("%d-%d ", x, y);
}
}for(int x = 0; x < 2; x++) {
for(int y = 0; y < 3; y++) {
printf("%d-%d ", x, y);
}
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions