Last active
July 3, 2018 01:58
-
-
Save phucnguyen81/8262961b028feb31049e6d1f80650353 to your computer and use it in GitHub Desktop.
Revisions
-
phucnguyen81 renamed this gist
Jul 3, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
phucnguyen81 created this gist
Apr 24, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ def fibonacci_upto(max) i1, i2 = 1, 1 while i1 <= max yield i1 i1, i2 = i2, i1+i2 end end