Adedee / ruby

0 stars 0 forks source link

Exercise 3 #4

Open Adedee opened 8 years ago

Adedee commented 8 years ago

https://github.com/Adedee/ruby/commit/1fb86e067376afface6730668bb356dccb00618c Fibonacci Series upto 1000 using 'yield'.

DOkwufulueze commented 8 years ago

The exercise explicitly states we need Fibonacci sequence up to 1000. Why did you make the upper bound variable? Please fix this.

Also what happens if I call your generate_fibonacci without a block? Hint: block_given?