Question: Write a function MATH_XYZ, which accepts an array A. Function should perform the following operations: a. Divide all those array elements by 7 which are
Write a function MATH_XYZ, which accepts an array A. Function should perform the following operations: a. Divide all those array elements by 7 which are divisible by 7. (First priority) b. Multiply all those array elements by 5 which are divisible by 5. (Second priority) c. Multiply all other array elements by 0. Write a program to exercise this function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
