Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
sum(x^(2i)/i,i=1..n) -- pascal
mramine364
Feb 10th, 2016
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Pascal
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
var
x
,
t
,
s
:
Real
;
i
,
n
:
Integer
;
begin
writeln
(
'n= '
)
;
readln
(
n
)
;
writeln
(
'x= '
)
;
readln
(
x
)
;
s
:
=
0
;
t
:
=
1
;
i
:
=
1
;
while
i<
=
n
do
begin
t
:
=
t
*
x
*
x
;
s
:
=
s
+
t
/
i
;
i
:
=
i
+
1
;
end
;
writeln
(
s
)
;
end
.
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ API Flaw Money Method
CSS | 54 min ago | 1.04 KB
⭐ Exploit Documentation ⭐
CSS | 55 min ago | 1.04 KB
This month smells like money
CSS | 55 min ago | 1.04 KB
din47100_32_signals
Python | 2 hours ago | 1.99 KB
TP0_01
Java | 6 hours ago | 3.92 KB
KiCad dark mode generator
JavaScript | 7 hours ago | 1.53 KB
Kicad dark scheme
JSON | 7 hours ago | 14.38 KB
MM rando seed 8/12
13 hours ago | 27.63 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!