Answer:
Step-by-step explanation:
Let do this in python. We will utilize the while loop and keep on dividing by 10 until that number is less than 10. Along the loop we will count the number of looping process. Once the loop ends, we can output that as answer.
def digits(n):
n_digit = 1
while n >= 10:
n_digit += 1
n /= 10
return n_digit