Posted By

adino on 02/19/15


Tagged

ruby


Versions (?)

30 fibonacci numbers without using numbers in Ruby


 / Published in: Ruby
 

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

  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  

You need to login to post a comment.