Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import *
- def distance(x,y):
- return sqrt(x**2+y**2)
- x,y=0,0
- N=1
- while distance(x,y)<65000:
- if N%4==0:
- y-=N
- elif N%3==0:
- x-=N
- elif N%2==0:
- y+=N
- else:
- x+=N
- N+=1
- print (x,y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement