← Back to archive

Stdle #126 · comparisons · 2026-10-10

What does this Ruby snippet output?

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

case 42
in Integer => n if n > 100
puts "big"
in Integer => n if n > 10
puts "medium: #{n}"
end
Comparisons
4 attempts left

Answer & explanation