Question: Write a code in Java to recursively separate a number and count how many of its digits are even. 0s do not count as even
Write a code in Java to recursively separate a number and count how many of its digits are even. 0s do not count as even numbers.
Example:
111 would print 0
224 would print 3
0002 would print 1
Only code given:
int start(int num) {
}
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
