Am I the only one who, in response to: "dont use loops" thought of the following: int numDigits(int num){ if (num
I did this which will work with any length of number[1], and appears to work for all edge cases, including numbers that start with zero and doesn't use loops:
(defun num-digits (n)
(if (
[1] Millions of digits, if your computer has the RAM for it.