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
Post a Comment