Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Question 1 Final
UF6
May 8th, 2016
329
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
math
x
=
float
(
input
(
"Give x:"
)
)
n
=
term
=
numv
=
1000
sum
=
1.0
while
n
<=
1000
:
term*
=
x/n
sum
+
=
term
n+
=
1000
if
term
<
0.0001
:
break
print
(
"No Values=%d and Sum=%f"
%
(
n
,
sum
)
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Bitcoin is Amazing
1 hour ago | 0.12 KB
Roblox Scripts
6 hours ago | 0.02 KB
December smells like money
6 hours ago | 0.06 KB
Decentralized Moneys
7 hours ago | 0.42 KB
Bitcoin
7 hours ago | 0.23 KB
Untitled
8 hours ago | 13.75 KB
Untitled
9 hours ago | 0.06 KB
Untitled
13 hours ago | 3.86 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!