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
stringsor anyexternalpackage.The function must return a
integervalue corresponding to the number of digits of the input number.