First take all the three 3 digit numbers
3 gets printed in the hundredth place 100 times
3 gets printed in the tens place 90 times
3 gets printed in the units place 90 times
Total - 280
Now take all the 4digit numbers
3 gets printed in the thousand place 1000 times.
3 gets printed in the hundredth place 900 times.
3 gets printed in the tens place 900 times.
3 gets printed in the units place 900 times.
Total- 3700 times
Overall total 280 + 3700= 3980