Guest User

Untitled

a guest
Nov 15th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #[inline(never)]
  2. pub fn fact(num: i32, result: i32) -> i32{
  3. if (num == 0) {
  4. return result;
  5. }
  6. return fact(num - 1, result + num);
  7. }
  8.  
  9. pub fn f() ->i32{fact(6, 0)}
Add Comment
Please, Sign In to add comment