Created
September 16, 2013 12:56
-
-
Save roberto/6580341 to your computer and use it in GitHub Desktop.
fizzbuzz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numero = gets | |
fizzbuzz(10) | |
# 1 2 fizz 4 buzz fizz 7 8 fizz buzz 11 fizz 13 14 fizzbuzz | |
# imprimir todos os números até o número | |
# se for divisível por 3, imprime fizz | |
# se for divisível por 5, imprime buzz | |
# caso não, imprime o próprio número |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment