Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
recursive fibonacci function
etonw
May 31st, 2022
(
edited
)
279
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
// recursive fibonacci function
int
fibonacci
(
int
n
)
{
if
(
(
n
==
0
)
||
(
n
==
1
)
)
{
return
1
;
}
else
{
return
fibonacci
(
n
-
1
)
+
fibonacci
(
n
-
2
)
;
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
zad_4_odp_full_DLC_EXPANSION_V2_autoliczenie
Bash | 8 min ago | 20.53 KB
GWCombo v1
JavaScript | 13 min ago | 3.26 KB
Review Skilling
PHP | 38 min ago | 2.29 KB
Review Skilling
PHP | 38 min ago | 2.55 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 55 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 hour ago | 0.38 KB
Контроль выхода
C# | 1 hour ago | 0.61 KB
Review Doto
PHP | 1 hour ago | 2.66 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!