← Back to archive

Stdle #104 · iteration · 2026-09-18

What does this Go snippet output?

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

package main
import "fmt"
func main() {
outer:
for i := 0; i < 3; i++ {
for j := 0; j < 3; j++ {
if j == 1 {
continue outer
}
fmt.Print(i, j, " ")
}
}
fmt.Println()
}
Iteration
4 attempts left

Answer & explanation