Make a python program to input a number and print total no. of digits of that number.
Answers
Answered by
0
number = Input( "Please Enter a number " )
print( "Number of Digits : ", len(number))
Answered by
1
num = int(input("Enter a number: "))
n = 0
while num > 0:
n = n+1
num= num / 10
print ("The no of digits = ", n )
Hope it helps :)
Similar questions