We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95324cc commit 66babd6Copy full SHA for 66babd6
digits_in_number.py
@@ -0,0 +1,9 @@
1
+__author__ = 'Avinash'
2
+
3
+input_num = int(input("Enter any number: "))
4
5
+count = 0
6
+while input_num > 0:
7
+ count += 1
8
+ input_num //= 10
9
+print("The number of digits in the given number are:", count)
0 commit comments