return an array of coordinates...
in
Programming Questions
•
7 months ago
hello all, I have a math and list issue.
I have a grid of numbers from 0 to 100, like this:
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
...............etc...
I want to choose one coordinate let's say 65 and make a list of coordinates included into a square of 5x5 dim with 65 as its center
the result would be : { 43,44,45,46,47,53,54,55,56,57,63,64,65,66,67,73,74,75,76,77,83,84,85,86,87}
I can't figure out the way to find those values, and the way to store them into an array...
any help would be appreciated,
thanks
I have a grid of numbers from 0 to 100, like this:
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
...............etc...
I want to choose one coordinate let's say 65 and make a list of coordinates included into a square of 5x5 dim with 65 as its center
the result would be : { 43,44,45,46,47,53,54,55,56,57,63,64,65,66,67,73,74,75,76,77,83,84,85,86,87}
I can't figure out the way to find those values, and the way to store them into an array...
any help would be appreciated,
thanks
1