Question: In Java recursively count how many 7s are in a number. If 7 is at the front, it does not count. 7 would return 0
In Java recursively count how many 7s are in a number. If 7 is at the front, it does not count.
7 would return 0
73773 would return 2
17772 would return 3
Solution must use recursion. Return the 7s count.
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
