Answers for "get number of digits in an integer python without converting to string"

0

get number of digits in an integer python without converting to string

num = int(input())
count = 0
while num > 0:
  count += 1
  num = num // 10
print(count)
Posted by: Guest on June-28-2021

Code answers related to "get number of digits in an integer python without converting to string"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language