Number of digits

Report a typo

Write a program that counts the number of digits in a positive integer n using a while loop.

Sample Input 1:

1

Sample Output 1:

1
Write a program in C++





Create a free account to access the full topic