title: Program To Find Remainder Without Using Modulo Or Operator
signature: program_to_find_remainder_without_using_modulo_or_operator <- function(num, divisor) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(num, divisor, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(num, divisor), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          80L, 54L, 
          26L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          63L, 21L, 
          0L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          1L, 56L, 
          1L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          22L, 39L, 
          22L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          66L, 7L, 
          3L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          61L, 67L, 
          61L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          45L, 63L, 
          45L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          29L, 44L, 
          29L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          95L, 65L, 
          30L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          9L, 68L, 
          9L
      )))
  
  }
  
  main()
source_py: def program_to_find_remainder_without_using_modulo_or_operator(num, divisor):
      return (num - (divisor * (num // divisor)))
source_cpp: int program_to_find_remainder_without_using_modulo_or_operator(int num, int divisor) {
    return ( num - divisor * ( num / divisor ) );
  }