Guest User

Untitled

a guest
Dec 11th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. puts (1..100).map { |n| (s="#{n%3==0?'fizz':''}#{n%5==0?'buzz':''}").empty? ? n : s }.join("\n")
Add Comment
Please, Sign In to add comment