30 fibonacci numbers without using numbers in Ruby


/ Published in: Ruby
Save to your folder(s)

30 fibonacci numbers without using numbers in Ruby (64 characters)


Copy this code and paste it in your HTML
  1. s=' '.ord;a=s^s;b=s/s
  2. b.upto(s-b-b){|x|print x,' : ';p a=b+b=a}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.