Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
InasAwad
Jun 25th, 2021
(
edited
)
197
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
int
mystery
(
int
a,
int
b
)
{
if
(
b
==
1
)
// base case
{
cout
<<
"a1 "
<<
a
<<
endl
;
return
a
;
}
else
{
// recursion step
cout
<<
"a "
<<
a
<<
endl
;
return
a
+
mystery
(
a, b
-
1
)
;
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Flat (Up to date)
Lua | 3 min ago | 1.08 KB
Untitled
YAML | 6 min ago | 4.22 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 20 min ago | 0.39 KB
Untitled
C# | 41 min ago | 14.10 KB
Yakuza style
LScript | 1 hour ago | 110.85 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 1 hour ago | 0.38 KB
Pastebin.ai - #1 pastebin alternative
PHP | 1 hour ago | 0.83 KB
LCD Button rev_05
Arduino | 1 hour ago | 3.37 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!