Counting the Zeros
All the integers from 1 to 1000 are written in ordinary decimal notation (no leading zeros). How many times is the digit 0 written in total? Give an integer.
Related problems & prerequisites
Worth solving first
- Ten People, Five Pairs 3.0/10
- Arranging MISSISSIPPI 3.0/10
Source: Classic exercise in wide circulation; no traceable original source. Statement written for AxiomIQ.