Make a program that counts the number of digits of the number entered from the keyboard.

You can count the number of digits in a number by dividing and calculating the remainders and whole parts that remain after division. But this method is very time consuming.
It will be much easier to convert the number to a type for which it is easy to calculate its length.
This type is string.
Let’s convert the input number to a string:
str (number, string_number);
We can now use the length () function to find out the number of digits.
Let’s immediately display it on the screen:
writeln (length (string_number));



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.