Question: 6) Write a fianction which performs the following actions: ) Take an array of integers called numbers, an integer for the array's length length, and
6) Write a fianction which performs the following actions: ) Take an array of integers called numbers, an integer for the array's length length, and a third integer divisor as parameters. 2) Construct a new array of integers from the numbers array in which all the numbers are divisible by the divisor variable. 3) Return the array built in Step 2 For example, if the input array contains 2, 4, 7, 8, 9, the array returned should contain 2 4, 8 ifthe divisor variable is 2.30 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
