The number of times the digit 5 will appear while writing the integers from 1 to 1000

Numbers

The number of times the digit 5 will appear while writing the integers from 1 to 1000 is

  1. 269
  2. 271
  3. 300
  4. 302

Answer

First, you need to know how many 5's are there from 1 to 100.

5, 15, 25, ... , 95 = ten 5s at the unit's place.

50, 51, ..., 59 = ten 5s at the ten's place.

So, occurrence of 5 from 1 to 100 = 20 times.

So, from 1 to 1000, 5's in tens and units place would be 20 x 10 = 200 times

Occurrence of 5 at hundredth place from 500 to 600 = 100 times

Therefore, total number of times 5 digit would appear = 200 + 100 = 300.

The correct option is C.