Number of Digits 🟡
Contents
Number of Digits 🟡#
Write a function that returns the number of digits for a given integer number.
Rules#
Input: integer (
int
) number (+
or-
)Solve this challenge without using
strings
or anyexternal
package.The function must return a
integer
value corresponding to the number of digits of the input number.