Header Ads

Python Program to Find Total Number of Digits in a Given Number

Program Code: 

n = int(input("Enter Any Number:"))

count = 0
while n>0:
    count = count+
1
   
n = n//10   # remainder
print("The number of digits in This Number are :"
,count)

Output



No comments

Powered by Blogger.