Problem 45246. Count digits

Count total number of digits from 1 to n.

  • n=13
  • output=17

since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.

Solution Stats

47.01% Correct | 52.99% Incorrect
Last Solution submitted on Feb 08, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers25

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!