Question: Can i get this solved in C++ Write a function number_digits which returns the number of digits in an integer. Hint: use a while loop,
Can i get this solved in C++ 
Write a function number_digits which returns the number of digits in an integer. Hint: use a while loop, and integer division, to determine the number of digits in a number For example: Test printf("%d ", number-digits (123456)); printf("%d ", number, digits(99)); printf ("%d ", number-digits (1 )); Answer: Output 2 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
