30 fibonacci number without using numbers in ruby


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

ruby


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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.