Puzzle DB15


Print every N'th element of an integer array, starting with element 0

[E-8]Write a function that prints every N'th integer of an array starting with element 0. This might be used to look at a big array when you just want to check that all the elements are there.

A more elaborate function would randomly skip forward an amount 0..N for each element it prints.

To test your code, initialize the array using D04 or D09.



Answer         Next Page         Previous Page Home