|Find the factorial of a number using recursion....|General Coding Problems

fn factorial_recursive(n: u32) -> u64

Easy

Find the factorial of a number using recursion.

fn factorial_recursive(n: u32) -> u64

Asked in

infosystcs

Examples

Example 1:
Input: 5
Output: 120
Example 2:
Input: 0
Output: 1
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases