UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 90c06e1d authored by James Taylor's avatar James Taylor
Browse files

Update 4-reverse_array.adoc

reworded to be easier to understand what was expected
parent 11a397f4
Branches
No related merge requests found
Pipeline #39771 failed with stage
in 2 seconds
......@@ -3,4 +3,13 @@
= ACTIVITY: Reverse Arrays
Create an array that contains a range from a random number between -10 and 0 then another random number between 1 and 20 then create a variable that contains the contents of the array in reverse.
* Create an `array` containing a range with a random starting and stopping point. The starting point will be a random number from -10 through 0.
The ending point will be a random number from 1 through 20.
[NOTE]
For example, if the first random number is -3, and the second random number is 2, your `array` will be -3, -2, -1, 0, 1, 2
* Create a `variable` that contains the contents of the `array` in `reverse`
[NOTE]
Using the above example, your `reversed array` will be 2, 1, 0, -1, -2, -3
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment