Building an array of values that increase by a fixed value


Here’s one way to to build an array that contains a sequence of numbers like 1,5,9,13, …, where each number in the sequence is the previous number + 4.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s