Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
C++ "Đệ quy Giai thừa"
dzungchaos
Nov 6th, 2019
117
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
long
fact
(
int
n
)
{
if
(
n
==
0
)
return
1
;
else
return
n
*
fact
(
n
-
1
)
;
}
int
main
(
)
{
int
n
;
cin
>>
n
;
cout
<<
fact
(
n
)
;
return
0
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make 1500$ in 1 day [Method]? 3S
Java | 46 sec ago | 0.07 KB
Make 1500$ in 20 MIN [Method] I
JavaScript | 51 sec ago | 0.07 KB
Make 3500$ in 1 day [Method]XH
Java | 1 min ago | 0.07 KB
1500$ in 1 day [Method]? AZ
Java | 2 min ago | 0.07 KB
MAKE $900 INSTANTLY B
JavaScript | 3 min ago | 0.07 KB
FREE BTC GUIDE L
JavaScript | 3 min ago | 0.07 KB
FREE 500$ GIFTCARDS???? VF
Java | 3 min ago | 0.06 KB
1500$ in 1 day [Method]? AZ
Java | 3 min ago | 0.07 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!