Originally Posted by

**Mirix** I have managed to achieve this task using 10 different variables (one for each row) since the grid is 10 by 10.

The steps are:

1. picks up and counts beepers in first column, assigns the number to variable "a"

2. moves to the second column

3. picks up and counts beepers in second column, assigns the number to variable "b"

4. drops the "a" amount of beepers in the second column

5. moves to the third column

6. picks up and counts beepers in the third column, assigns the number to variable "c"

7. drops the "b" amount of beepers in the third column.

...and so forth.

This way seems pretty tedious though, since I had to assign 10 different variables for each of the columns.

Are there any other ways? or are there any ways to reset each variable to zero so I can loop this instead of repeating the same steps over and over?