Question: Complete the function ReturnNumbers ( ) which takes one positive integer ( endValue ) as an input argument. The function should generate an array of
Complete the function ReturnNumbers which takes one positive integer endValue as an input argument. The function should generate an array of integers from to endValue, and from this array return:
oddNumbers: an array of odd numbers between and endValue from smallest number to largest number
evenNumbers: an array of even numbers between and endValue from smallest number to largest number
reverseNumbers: an array of numbers decreasing from endValue to
Note: While arrays are double, the entries will be integer numbers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
