return n if ( 0..1 ).include? n (fibonacci(n - 1) + fibonacci(n - 2)) #recursive calls end
attila180 / docs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from github/docs
The open-source repo for docs.github.com
Home Page: https://docs.github.com
License: Creative Commons Attribution 4.0 International