Write a recursive function called DigitCount() that takes a positive integer as a parameter and returns the number of digits in the integer. Hint: The number of digits increases by 1 whenever the...


Solve in C++



Write a recursive function called DigitCount() that takes a positive integer as a parameter and returns the number of digits in the integer.<br>Hint: The number of digits increases by 1 whenever the input number is divided by 10.<br>Ex: If the input is:<br>345<br>the function DigitCount() returns and the program outputs:<br>3<br>

Extracted text: Write a recursive function called DigitCount() that takes a positive integer as a parameter and returns the number of digits in the integer. Hint: The number of digits increases by 1 whenever the input number is divided by 10. Ex: If the input is: 345 the function DigitCount() returns and the program outputs: 3

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here