Question: Write the code to declare and initialize a one-dimensional array of 10 items. Each element is assigned a random integer within a range based on
Write the code to declare and initialize a one-dimensional array of 10 items. Each element is assigned a random integer within a range based on its index.
Example: For index 0, assign a random integer from 0 to 99, inclusive For index 1, assign a random integer from 100 to 199, inclusive For index 2, assign a random integer from 200 to 299, inclusive (and so on...)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
