Ad
  • Custom User Avatar

    I went the route of having a separate function to multiply the digits as well. I think it's a little cleaner. Nice code!

  • Default User Avatar

    Your multiply_digits function will return 1 instead of 0 when you pass n = 0 into it. It doesn't affect the result of the main function as you will never pass 0 into it since your while loop would break if n was 0, but still not expected behavior.