Update maths/number_of_digits.rb

Co-authored-by: Vitor Oliveira <vbrazo@gmail.com>
This commit is contained in:
Abhinav Anand 2021-01-28 23:33:14 +05:30 committed by GitHub
parent 3a52ac6e77
commit b54b43f68b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ def count_digits(n)
temp = n
if (n == 0)
return count + 1
return 1
end
until temp.zero?