title: Number Is Divisible By 29 Or Not
signature: numberIsDivisibleBy29OrNot(n) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(bool actual, bool expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(n, bool expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          29, 
          true)
      }");
  
      print("TEST-1...${driver(
          0, 
          true)
      }");
  
      print("TEST-2...${driver(
          65, 
          false)
      }");
  
      print("TEST-3...${driver(
          1419, 
          false)
      }");
  
      print("TEST-4...${driver(
          54, 
          false)
      }");
  
      print("TEST-5...${driver(
          7, 
          false)
      }");
  
      print("TEST-6...${driver(
          44, 
          false)
      }");
  
      print("TEST-7...${driver(
          34, 
          false)
      }");
  
      print("TEST-8...${driver(
          1160, 
          true)
      }");
  
      print("TEST-9...${driver(
          292929002929, 
          true)
      }");
  
      return 0;
  }
source_py: def number_is_divisible_by_29_or_not(n):
      while int((n / 100)):
          last_digit = int((n % 10))
          n = int((n / 10))
          n += (last_digit * 3)
      return ((n % 29) == 0)
source_cpp: bool number_is_divisible_by_29_or_not(long long int n) {
    while ( n / 100 ) {
      int last_digit = n % 10;
      n /= 10;
      n += last_digit * 3;
    }
    return ( n % 29 == 0 );
  }