Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 21st, 2018
86
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <stdio.h>
int
main
(
)
{
int
n,i,c
;
float
p
;
scanf
(
"%d"
,
&
n
)
;
p
=
2
;
c
=
1
;
for
(
i
=
1
;
i
<
n
;
i
++
)
{
c
*
=
(
i
+
1
)
;
p
*
=
(
1
+
1.0
/
c
)
;
}
printf
(
"%f
\n
"
,p
)
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
error imgui
C++ | 3 min ago | 8.89 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 21 min ago | 0.38 KB
Untitled
C++ | 42 min ago | 2.79 KB
ArrayLista primer (Niske)
Java | 45 min ago | 0.73 KB
ДЗ: Работа с конкретными строками/столбцами
C# | 53 min ago | 1.60 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Untitled
Python | 1 hour ago | 0.82 KB
windows11-ryzen5800x-libvirt-xml-13
XML | 1 hour ago | 10.25 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!