Skip to content

Instantly share code, notes, and snippets.

@betacar
Forked from GusGA/elefantes.rb
Last active December 21, 2015 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betacar/6362505 to your computer and use it in GitHub Desktop.
Save betacar/6362505 to your computer and use it in GitHub Desktop.
i = 1
loop {
if i == 1
p "1 elefante se balanceaba sobre la tela de una araña, como veia que resistía fue a llamar a otro elefante"
else
p "#{i} elefantes se balanceaban sobre la tela de una araña, como veian que resistía fueron a llamar a otro elefante"
end
i += 1
sleep 5
}
@GusGA
Copy link

GusGA commented Aug 28, 2013

basta con cambiar n por i en la línea 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment