title: C Program Factorial Number 1
signature: c_program_factorial_number_1 <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          15L, 
          1307674368000L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          7L, 
          5040L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          16L, 
          20922789888000L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          16L, 
          20922789888000L
      )))
  
  }
  
  main()
source_py: def c_program_factorial_number_1(n):
      return (1 if ((n == 1) or (n == 0)) else (n * c_program_factorial_number_1((n - 1))))
source_cpp: unsigned int c_program_factorial_number_1(unsigned int n) {
    int res = 1, i;
    for ( i = 2;
    i <= n;
    i ++ ) res *= i;
    return res;
  }