A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-42.go
1packagemain
2
3import"fmt"
4
5const(
6_=iota
7A=iota*iota
8B
9C
10)
11
12funcmain(){
13fmt.Println(A,B,C)
14}
Numbers
Answer & explanation
Console output
1 4 9
Why
iota = 0 is discarded on the first line. A sets the expression iota * iota at iota = 1 (giving 1), and B and C repeat that same expression at iota = 2 and 3, giving 4 and 9. The repeated expression squares each iota value.