Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 14th, 2018
82
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
def hailstone(n):
print(n)
a = 0
while (n>1):
if n%2 == 0:
print(n/2)
n = n/2
else:
print (3*n + 1)
n = 3*n + 1
a = a + 1
print(a)
Add Comment
Please,
Sign In
to add comment
Public Pastes
+16,000$ in 3 days
CSS | 3 min ago | 0.91 KB
Free BTC Method
CSS | 6 min ago | 0.91 KB
Crypto Exploit
CSS | 8 min ago | 0.94 KB
+18,620$ in 3 days [Method]
CSS | 16 min ago | 0.94 KB
+16,000$ in 3 days
CSS | 19 min ago | 0.91 KB
Big money never comes clean - Guide
CSS | 25 min ago | 0.94 KB
Crypto Exploit
CSS | 33 min ago | 0.94 KB
+18,620$ in 3 days [Method]
CSS | 42 min ago | 0.94 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!