Question: Write a code in java to recursively separate a number and then count how many of its digits are even. Zeroes DO NOT count as
Write a code in java to recursively separate a number and then count how many of its digits are even. Zeroes DO NOT count as evens.
Example:
333 would print 0
246 would print 3
002 would print 1
Please make sure that a number with 0s does not count the 0 as an even. 0606 would print 2 NOT 4.
code given:
int start(int n) {
}
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
