If a number is formed by writing integers 1 to 150 one after another, like 12345...150. How many W digits does this integer consists of?
Answers
A) 150
B) 339
C) 342
D) 359
E) 362
Number of single digit integers = 9   Number of 2 digit integers = 99 - 10 + 1= 
<gadget id="calculator">99 - 10 + 1</gadget>
<output>90</output>
90   Number of 3 digit integers= 150 - 100 + 1= 
<gadget id="calculator">150 - 100 + 1</gadget>
<output>51</output>
51   Number of digits in the integer W= 1*9 + 2*90 + 3*51 = 9 + 180 + 153= 
<gadget id="calculator">9 + 180 + 153</gadget>
<output>342</output>
342   Answer: 342
<result>C</result>
If a number is formed by writing integers 1 to 150 one after another, like 12345...150. How many W digits does this integer consists of?