• Create the following recursive functions:
(Create function declarations in .h file)
. Factorial Calculation (ie: 5! = 5*4*3*2*1)
Parameter = int to factorial
. Returns factorial as long
• Fibonacci Sequence (Each term is the sum of the previous two, ie:
0,1,1,2,3,5,8,13)
Parameter = nth term to return
Return: nth term
.
.
.
• Power Function (One number raised to another number)
Two Parameters where x = Ab
.
.
A is first parameter, b is second
Returns x
• Write comment considering where size_t may be appropriate for each function
.
Call all functions in main(), ensure it compiles and is correct
Commit and Push