The famous sequence, the fibonacci numbers, is usually described recursively.
The formula needs just little tweaking to get the right values, though. Explore more like recursive formula generator. The fibonacci formula can be written as a method that calls itself is named as recursive method. A recursive algorithm calls itself which usually passes the return value as a parameter to the algorithm again.
Nema komentara:
Objavi komentar