Following is a program to find out the Total Number of digits in a given number :
n = int(input("Enter the number "))
count = 0
while n>0 :
n=n//10
count += 1
print(count)Following is a program to find out the Total Number of digits in a given number :
n = int(input("Enter the number "))
count = 0
while n>0 :
n=n//10
count += 1
print(count)