title: C Program Factorial Number 1
signature: function cProgramFactorialNumber1($n) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($n, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($n), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        15, 
        1307674368000));
      
      printf("TEST-1...%s\n",driver(
        7, 
        5040));
      
      printf("TEST-2...%s\n",driver(
        16, 
        20922789888000));
      
      printf("TEST-3...%s\n",driver(
        16, 
        20922789888000));
      
  }
  
  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;
  }