title: C Program Factorial Number 2
signature: func cProgramFactorialNumber2(n int) int64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int64, expected int64) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(n int, expected int64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(n),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(19, 121645100408832000)
      fmt.Printf("TEST-0...%s\n", result)
      
          
  }
source_py: def c_program_factorial_number_2(n):
      return (1 if ((n == 1) or (n == 0)) else (n * c_program_factorial_number_2((n - 1))))
source_cpp: int c_program_factorial_number_2(int n) {
    return ( n == 1 || n == 0 ) ? 1 : n * c_program_factorial_number_2 ( n - 1 );
  }