Last active
July 31, 2021 11:52
-
-
Save alevchuk/38c074dd984aa0a51b6a6261707162c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# квадраный корень 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