Write code that stores all odd numbers between -6 and 38 into an array using a loop.

Question:

Write code that stores all odd numbers between -6 and 38 into an array using a loop. Make the array’s size exactly large enough to store the numbers.

Then, try generalizing your code so that it will work for any minimum and maximum values, not just -6 and 38.


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: