reset password
Author Message
lakerfan94
Posts: 143
Posted 14:36 Mar 01, 2014 |

How does 7.1 work? Is it that the 1st line prints the elements at even indices, 2nd line prints every even element, 3rd line prints all elements in reverse order, and 4th line prints only the first and last element? Or does each line contain all the information?

Eric Liao
Posts: 158
Posted 15:01 Mar 01, 2014 |

You print each information in different line:

For instance,

randomArray = { 1, 3, 5, 6, 7, 8, 5, 2, 4, 10 }

Element in Even Index:

3, 6, 8, 2, 10

Every even array:

6, 8, 2, 4, 10

.. 

and so on.