Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
[t004] divide
AquaBlitz11
Oct 9th, 2018
495
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
#include<stdio.h>
double
func
(
int
n
)
{
if
(
n
==
0
)
return
1
;
else
{
return
func
(
n
-
1
)
+
(
1
/
func
(
n
-
1
)
)
;
}
}
int
main
(
)
{
int
n
;
scanf
(
"%d"
,
&
n
)
;
func
(
n
)
;
printf
(
"%lf"
,func
(
n
)
)
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Free Crypto Method
CSS | 48 min ago | 0.72 KB
+12,000$ in 2 days
CSS | 49 min ago | 0.72 KB
Documents
49 min ago | 0.43 KB
Crypto admin access
49 min ago | 0.43 KB
Silk
2 hours ago | 3.74 KB
fleet_agent
11 hours ago | 5.04 KB
Altur Song Lyrics
22 hours ago | 13.27 KB
CC:T GPS Beacon
1 day ago | 0.49 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!