CodePudding user response:
What is FeiBoNa series?CodePudding user response:
The Fibonacci sequence?CodePudding user response:
Recursion is easy toDefine the function f (n)
Parameters for integer n
The body of the function:
Choose a case n
Case 1, 2
Return 1
In case the else
The return of f (n - 1) + f (n - 2)
The end choose