Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Stepik_Task_14
TwITe
Jul 25th, 2017
100
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
int
fib
(
int
n
)
{
if
(
n
==
1
)
{
return
1
;
}
if
(
n
==
0
)
{
return
0
;
}
return
fib
(
n
-
1
)
+
fib
(
n
-
2
)
;
}
int
task14
(
)
{
int
n
;
cin
>>
n
;
cout
<<
fib
(
n
)
;
return
0
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
+12,000$ in 2 days
CSS | 7 min ago | 0.72 KB
Free Crypto Method
CSS | 27 min ago | 0.72 KB
Crypto admin access
30 min ago | 0.43 KB
Documents
50 min ago | 0.43 KB
Notices blood
1 hour ago | 0.81 KB
discord chat view
Python | 5 hours ago | 9.23 KB
systemd-socket-test (AI + Human)
Python | 17 hours ago | 9.34 KB
Puts to sleep and forget
1 day ago | 0.85 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!