Created
February 2, 2013 00:25
-
-
Save gtcarlos/4695184 to your computer and use it in GitHub Desktop.
1 elefante incomoda muita gente...
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
1.upto(100) do |e| | |
puts "#{e} elefante incomoda muita gente" if e == 1 | |
puts "#{e+=1} elefantes #{'incomodam ' * e += 1}muito mais" if e % 2 == 0 | |
puts "#{e+=1} elefantes incomodam muita gente" unless e % 2 == 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment