todo.rb
# Helper function to determine how many digits are in the passed
# number
# Ex.
# num_of_digits(100)
# returns -> 3
#
Helper function to determine how many digits are in the passed
number
Ex.
Helper function to determine how many digits are in the passed number Ex .
def num_of_digits(num)
  digit_counter = 0
  while num > 0
    num = num / 10
    digit_counter += 1
  end
  return digit_counter
end
def num_of_digits ( num ) digit_counter = 0 while num > 0 num = num / 10 digit_counter += 1 end return digit_counter end
Helper function to determine how many digits are in the passed
number
Ex.
Helper function to determine how many digits are in the passed number Ex .
num