Skip to content

Instantly share code, notes, and snippets.

@spraints
Created September 16, 2019 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spraints/eba32f745ed40ef3b77cea579aebd2ca to your computer and use it in GitHub Desktop.
Save spraints/eba32f745ed40ef3b77cea579aebd2ca to your computer and use it in GitHub Desktop.
def show(x, y)
puts "#{y} #{y.to_f / x.to_f}"
end
a, b = ARGV.map(&:to_i)
c = a + b
puts a
show a, b
show b, c
50.times do
a = b
b = c
c = a + b
show b, c
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment