← Back to archive

Stdle #100 · iteration · 2026-09-14

What does this Go snippet output?

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

package main
import "fmt"
func main() {
x := 1
switch x {
case 1:
fmt.Println("a")
fallthrough
case 2:
fmt.Println("b")
case 3:
fmt.Println("c")
}
}
Iteration
2 lines
4 attempts left

Answer & explanation