← Back to archive

Stdle #134 · iteration · 2026-10-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 i == 1 && j == 1 {
break outer
}
fmt.Print(i*10+j, " ")
}
}
fmt.Println()
}
Iteration
4 attempts left

Answer & explanation