Question: from 1 to 1000 how many times 5 comes?
Answer: Therefore, 5 will appear 180+120= 300 times between 0 to 1000.