← Back to archive

Stdle #26 · iteration · 2026-07-02

What does this C snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

#include <stdio.h>
int main(void) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (j == 1) break;
printf("%d%d ", i, j);
}
}
printf("\n");
return 0;
}
Iteration
4 attempts left

Answer & explanation