Skip to content

Instantly share code, notes, and snippets.

@spraints
Created Sep 16, 2019
Embed
What would you like to do?
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