in reply to Array Parse

We like to see at least an attempt when requesting for help.

You would use a loop to go through the array. You can use a counter and increase its value by 2 each iteration of the loop.

Now if you mean the contents of the array values being even then you can use the modulos operator % to check for evens.

Ack

Hit the submit key instead of preview....

I was going to add some stuff about grep and map but Aristotle already did that..

Replies are listed 'Best First'.
Re: Re: Array Parse
by Anonymous Monk on Jan 19, 2003 at 19:36 UTC
    please accept my apologies for not posting my code, but I was just curious if there was an alternative to using grep.

    Thanks again for the help and advice

      No worries. When classes start, we get many "write my assingment for me" requests.

      Hey if you are serious about learning, create an account and join the group. You will learn many things here!