Computer Science, asked by rakeshkumar831pamezv, 11 months ago

Make a python program to input a number and print total no. of digits of that number.​

Answers

Answered by Anonymous
0

number = Input( "Please Enter a number " )

print( "Number of Digits : ", len(number))

Answered by T70StOrM
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