How do I go about writing a code to determine how many digits are in a decimal expansion of any given number?
I have entered the
cin >> N;
so that the user enters any number, but how do I calculate the number of digits they enter?
I have entered the
cin >> N;
so that the user enters any number, but how do I calculate the number of digits they enter?
Comment