Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sqrt(num):
- x = 1
- y = 0
- while y == 0:
- if num / x == x:
- y = 1
- return x
- else:
- x = x + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement