daily pastebin goal
82%
SHARE
TWEET

Untitled

a guest May 16th, 2018 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = 1
  2. while (a != 31)
  3. if a%5 == 0
  4.   puts 'fizz'
  5.   else if
  6.     a%3 == 0
  7.     puts 'buzz'
  8.     else
  9.     puts a.to_s
  10.     end
  11.   end
  12. a = a.next
  13. end
  14. puts ' '
  15. puts 'We have finished the line!'
  16. puts ':)'
  17. readline
RAW Paste Data
Top