Created
April 17, 2021 12:42
-
-
Save bharathmuddada/303ba73bdadcad58e87f5937c89f60ff to your computer and use it in GitHub Desktop.
Count of Digits in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number = int(input()) | |
counter =0 | |
while number > 0: | |
number = number//10 | |
print(number) | |
counter +=1 | |
print("number of digits :",counter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment