22a. Memorization Quiz 1
fib and num-digits
- The
fib
function makes Fibonacci numbers starting withfib(0)=1
. Write it. - The
num-digits
function takes in a positive integer and returns the number of digits. For example,(num-digits 5031)
gives 4. Write this function. Edit to remove any unnecessary code.