Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 17th, 2018
89
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#Babylonian Algorithm
number = int(input("input a number"))
g = number/2
g2 = g + 1
while g != g2:
n = number / g;
g2 = g
g = (g + n)/2
answer = g
print(answer)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C# | 14 min ago | 4.90 KB
json response
JSON | 29 min ago | 19.78 KB
snowybot trial
JavaScript | 33 min ago | 1.82 KB
Odd Even Linked List
C++ | 35 min ago | 1.30 KB
lol
JavaScript | 38 min ago | 1.83 KB
Internal Bank Account
SQL | 1 hour ago | 4.67 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
fedora-40-workstation-installer-won't-st...
Bash | 1 hour ago | 3.81 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!