facts
pub fn factorial(x: i32) -> i32
Returns the factorial of a given number
let f = 5; let answer = facts::factorial(f); assert_eq!(120, answer);