Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 11th, 2017
87
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
//This factorial program works for positive integer numbers
function factorial(num) {
if (num === 0) return 1;
else return num * factorial(num - 1);
}
factorial(6);
Add Comment
Please,
Sign In
to add comment
Public Pastes
Legend style
LScript | 12 min ago | 64.20 KB
Untitled
C++ | 17 min ago | 0.47 KB
optimized_kmp
C++ | 19 min ago | 1.97 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 27 min ago | 0.38 KB
Untitled
C++ | 28 min ago | 1.38 KB
isometric
JavaScript | 30 min ago | 3.34 KB
Untitled
C++ | 49 min ago | 0.98 KB
snowybot python
JavaScript | 56 min ago | 3.54 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!