Skip to content

Instantly share code, notes, and snippets.

@alevchuk
Last active July 31, 2021 11:52
Show Gist options
  • Save alevchuk/38c074dd984aa0a51b6a6261707162c3 to your computer and use it in GitHub Desktop.
Save alevchuk/38c074dd984aa0a51b6a6261707162c3 to your computer and use it in GitHub Desktop.
# квадраный корень 10
y = float(input("Your number, please: "))
y2 = y
count = 0
for i in range(0,100):
y2 = y2 / 2
count += 1
print(y2)
if y2 <= 1: # if x2 == x1: #оператор if
print("Квадратный корень из числа " + str(y) + " это " + str(count))
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment