Question: Draw a flowchart for a program called extractOddDigits ( number ) that accepts a number and extracts every other digit, starting with the number s

Draw a flowchart for a program called extractOddDigits(number) that accepts a number and extracts every other digit, starting with the numbers last digit. Your function should accept a number and return an array of numbers. For example, if the input is 4203615041322314, the last digit is 4. Every other digit that follows is 3,2,1,0,1,3 and finally 2. The output array, in this case, should therefore be [4,3,2,1,0,1,3,2].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!