Ask your own question, for FREE!
Computer Science 19 Online
Parth (parthkohli):

Number of digits in C++.

Parth (parthkohli):

``` int nodigits(int n) { int no_digits = 0; while (n != 0) { no_digits += 1; n = n / 10; } return no_digits; } ```

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!