1 2 3 4 5 6 7
pub fn factorial(x: u32) -> u32 { if x == 1 || x == 0 { 1 } else { x * factorial(x - 1) } }