Fibonacci everywhere! #Quiz08

Fibonacci series… They’re quite interesting. Given a number the program will display all the fibonacci serie until the number the user gives, you’ll see the example in the code running. Basically I used the «formula» in this web page and with some help of a friend we could made it. We create the function fibonacci(int i) and the rest was just ifs and for. Here is the code:

quiz8Quiz08

Original header image recovered from: https://www.flickr.com/photos/ghirson/18475777/in/photolist-2CGcT-6GsoZ-oo7TWg-5Pimso-6b7s7N-c6pvt-pktg1Y-dkhaTG-2hdazR-2hhwkW-akkK66-akkK7P-akmSCP-4KyYUJ-6VNZjD-auoSAF-6eYwN-5HEX9f-o8z6-97N2Vr-nMkbeF-9bVtin-4cU5U8-ak7ZDH-akoxRN-dFPAm-akoxUL-5WDT8U-akaXwJ-ugXsf-8W8C2i-3X9rC1-4ikigj-dxvd-2RsTt1-dJ1bG4-akkK1M-QH7UF2-e9syey-jXn1k8-6MhYzd-5FE4R7-oqAfwT-ar66jF-hhA7Fs-7keK9r-8dqu3c-b1ecA-yjdnJ-9X1ET8


Deja un comentario