Example 6: number of zero
{"Image DocumentName": "Example 6: number of zero", "Image ImageDescription": "Write a recursive function that counts the number of zero digits in an integer. zeros(10200) returns 3. int zeros(int numb){ if(numb==0) // 1 digit (zero/non-zero): return 1; // bottom out. else if(numb < 10 && numb > -10) return 0; else // > 1 digits: recursion. return zeros(numb/10) + zeros(numb%10); } zeros(10200) zeros(1020) + zeros(0) zeros(102) + zeros(0) + zeros(0) zeros(10) + zeros(2) + zeros(0) + zeros(0) zeros(1) + zeros(0) + zeros(2) + zeros(0) + zeros(0)", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}