Stdle #39 · iteration · 2026-07-15
What does this Go snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" func main() { n := 2 switch n { case 1: fmt.Println("one") case 2: fmt.Println("two") fallthrough case 3: fmt.Println("three") fallthrough case 4: fmt.Println("four") }}Iteration