Question: Please do not use loops No even numbers (1D Arrays) Write a function called removeEvens to remove all the even numbers from input row array

Please do not use loops
No even numbers (1D Arrays) Write a function called removeEvens to remove all the even numbers from input row array inRowArray, which contains integer numbers. The function removeEvens should use the mod internal function and operate on a row array of any length. Hint: Logical indexing and the double square brackets [] should be used. The mod function should be used to identify even numbers, along with combination with logical indexing, and the empty array operator [] to remove the even numbers. Restrictions: Loops should not be used. Ex: inputRowArray = [1,2,3,4,5] removeEvens( inputRowArray ) produces 1 35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
