You don't show the code you've already written so I'm going to assume that this is homework.
Have you thought about whether the problem would be easier if your array contained different values?
How would you approach the problem if your array contained ten elements like the following:
@array = (0..9);
In reply to Re: array in different columns
by Corion
in thread array in different columns
by Muflone82
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |