daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest May 16th, 2018 89 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top