title: Number Digits Product Two Numbers
signature: numberDigitsProductTwoNumbers(a, b) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(a, b, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          86, 39, 
          4)
      }");
  
      print("TEST-1...${driver(
          81, 87, 
          4)
      }");
  
      print("TEST-2...${driver(
          48, 84, 
          4)
      }");
  
      print("TEST-3...${driver(
          64, 80, 
          4)
      }");
  
      print("TEST-4...${driver(
          56, 20, 
          4)
      }");
  
      print("TEST-5...${driver(
          5, 70, 
          3)
      }");
  
      print("TEST-6...${driver(
          25, 13, 
          3)
      }");
  
      print("TEST-7...${driver(
          94, 83, 
          4)
      }");
  
      print("TEST-8...${driver(
          5, 55, 
          3)
      }");
  
      print("TEST-9...${driver(
          46, 46, 
          4)
      }");
  
      return 0;
  }
source_py: def number_digits_product_two_numbers(a, b):
      count = 0
      p = abs((a * b))
      if (p == 0):
          return 1
      while (p > 0):
          count = (count + 1)
          p = (p // 10)
      return count
source_cpp: int number_digits_product_two_numbers(int a, int b) {
    int count = 0;
    int p = abs ( a * b );
    if ( p == 0 ) return 1;
    while ( p > 0 ) {
      count ++;
      p = p / 10;
    }
    return count;
  }