← Back to archive

Stdle #6 · 2026-06-12

What does this log?

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

package main
import "fmt"
func main() {
for i := 0; i < 4; i++ {
if i%2 == 0 {
defer fmt.Print(i, " ")
}
}
fmt.Println("x")
}
Defer
2 lines
4 attempts left

Answer & explanation