Write a procedure, num-digits, that takes in a number and
returns the number of decimal digits in the number. For example:
(num-digits 5)
;Value: 1
(num-digits 21)
;Value: 2
(num-digits 3987423)
;Value: 7
You will find quotient useful, as it works like /,
except it throws away anything after the decimal point (ie integer
division). For example:
(quotient 4 2)
;Value: 2
(quotient 5 2)
;Value: 2
First write out a plan (base case and recursive case), then implement
the procedure in scheme. Finally, test your procedure to verify that
it works.