Scheme Exercises
back to exercise list
previous next
Group: Exercise: 26/48
numdigits:
Count the number of digits of a positive integer
Create the function "numdigits" that will be given a positive integer and will return the number of digits it has. For instance, (numdigits 537) ; -> 3 (numdigits 4) ; -> 1 (numdigits 12345678987654321) ; -> 17
|