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

46.77% Correct | 53.23% Incorrect
Last Solution submitted on Jul 23, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers28

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!