Guest User

Untitled

a guest
Jun 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. (1..100).each do |num|
  2. out = num % 3 == 0 ? 'Fizz' : ''
  3. out << 'Buzz' if num % 5 == 0
  4. out = num if out.size == 0
  5. print out
  6. end
Add Comment
Please, Sign In to add comment