Posted By

adino on 02/19/15


Tagged

programming


Versions (?)

30 fibonacci number without using numbers in ruby


 / Published in: Ruby
 

ruby

  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  

You need to login to post a comment.