There are a number of places to start (actually by asking here and admitting it's homework you've already made a good start).
In reply to Re: confused with summing certain elements from an array
by GrandFather
in thread confused with summing certain elements from an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |