pyq/2019/csat/9

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

(A) 269

(B) 271

(C) 300

(D) 302