A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-171.go
1packagemain
2
3import"fmt"
4
5funcmain(){
6fori:=3;i>0;i--{
7deferfmt.Print(i)
8}
9fmt.Print("=")
10}
Defer
Answer & explanation
Console output
=123
Why
The loop registers defers capturing i = 3, 2, 1. The body prints "=", then LIFO unwinding reverses the registration order, printing 1, 2, 3. The descending loop combined with LIFO yields an ascending "=123".