Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 14th, 2018
81
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
FREE BTC GUIDE H
JavaScript | 13 min ago | 0.08 KB
Make $1200 in 15 minutes R
JavaScript | 43 min ago | 0.08 KB
Untitled
SQL | 53 min ago | 2.63 KB
2025-06-30T21:02:31.901306
PHP | 1 hour ago | 1.05 KB
pride-flag
Python | 2 hours ago | 1.22 KB
Untitled
Lua | 2 hours ago | 37.62 KB
Exploit(2)
HTML | 3 hours ago | 0.45 KB
Exploit(1)
HTML | 3 hours ago | 0.23 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!