Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 15th, 2018
113
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#[inline(never)]
pub fn fact(num: i32, result: i32) -> i32{
if (num == 0) {
return result;
}
return fact(num - 1, result + num);
}
pub fn f() ->i32{fact(6, 0)}
Add Comment
Please,
Sign In
to add comment
Public Pastes
wheat
Lua | 9 min ago | 2.04 KB
Untitled
Dart | 9 min ago | 6.73 KB
Untitled
C++ | 13 min ago | 0.94 KB
Untitled
C++ | 20 min ago | 0.71 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 37 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 43 min ago | 0.39 KB
Aura
HTML | 55 min ago | 6.44 KB
Untitled
C++ | 1 hour ago | 1.27 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!