[2201 views]
In this tutorial we will learn how can we count the number of Digits from any number using C++ program. When we input any number, that is a combination of digits. Suppose we give an input of 6574, here the number of digits is 4. To calculate the digits of any number we have three possibilities to input values.
So we will write a C++ program which satisfy the above three condition. In this program we will use if statement and while loop to satisfy all the above three condition.