cs/stuff/loops/num5.py

8 lines
106 B
Python
Raw Permalink Normal View History

2022-12-13 11:38:55 -05:00
a = int(input("Enter a number: "))
count = 0
while (a > 0):
count = count + 1
a = a // 10
print(count)