Skip to content

Commit

Permalink
Merge pull request #477 from aspleenic/master
Browse files Browse the repository at this point in the history
Adding fizzbuttz code
  • Loading branch information
James Lu authored and James Lu committed Apr 8, 2015
2 parents 61a2860 + c628c49 commit 151b91c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion EICAR.COM.TXT

This file was deleted.

13 changes: 13 additions & 0 deletions fun/fizzbuttz.rb
@@ -0,0 +1,13 @@
# Fizzbuttz by Aspleenic

(1..100).each do |x|
if x % 3 == 0 && x % 5 != 0
puts 'fizz'
elsif x % 5 == 0 && x % 3 != 0
puts 'buttz'
elsif x % 5 == 0 && x % 3 == 0
puts 'fizzbuttz'
else
puts x
end
end
1 change: 0 additions & 1 deletion virus.txt

This file was deleted.

0 comments on commit 151b91c

Please sign in to comment.