Question: Write a program to print Nth point from a Square Spiral where A Square Spiral is set of points on a graph starting from (0,0) and spirals in a square shape.
E.x: (0,0) (0,1) (1,1) (1,0) (1,-1) (0,-1) (-1,-1) and so on
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Question: Write a program to print Nth point from a Square Spiral where A Square Spiral is set of points on a graph starting from (0,0) and spirals in a square shape.
E.x: (0,0) (0,1) (1,1) (1,0) (1,-1) (0,-1) (-1,-1) and so on