title: C Program Factorial Number 1
signature: cProgramFactorialNumber1 :: Integer -> Integer
  cProgramFactorialNumber1 n = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Integer -> String
  driver n expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME n) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      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) )
  
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;
  }