I need help please, how can I write a program to count the number of digits of an integer the user entered ?
5 views (last 30 days)
Show older comments
For example, I asked the user to input a number and he entered 5984, how can I write a program to count how many digits it has (which is 4)? Thank you.
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!