Use OCAML language Write a simplyrecursive not tail recursi

Use OCAML language :-   Write a simply-recursive (not tail recursive) function to compute factorials (i.e. factorial 10 = 10 * 9 * 8 * ... * 2 * 1). Use an if/then/else statement in the function. Call this function factorial1.

Solution

A variety of libraries are directly accessible from OCaml.OCaml has a built-in library for arbitrary-precision arithmetic.

Use OCAML language :- Write a simply-recursive (not tail recursive) function to compute factorials (i.e. factorial 10 = 10 * 9 * 8 * ... * 2 * 1). Use an if/the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site