SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let f = factorial(5);
  3. }
  4.  
  5. fn factorial(n: u32) -> u32 {
  6.     if dbg!(n <= 1) {
  7.         dbg!(1)
  8.     } else {
  9.         dbg!(n * factorial(n - 1))
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top