SOLUTION: A computer prints all of the integers from 1 to 3456. How many times does it print the integer 5?

Algebra ->  Sequences-and-series -> SOLUTION: A computer prints all of the integers from 1 to 3456. How many times does it print the integer 5?      Log On


   



Question 1134464: A computer prints all of the integers from 1 to 3456. How many times does it print the integer 5?
Found 2 solutions by ikleyn, kohkche:
Answer by ikleyn(52788) About Me  (Show Source):
You can put this solution on YOUR website!
.

It is possible to solve . . .


        But it is very  BORING  problem,


                and you will learn  NOTHING  interesting or useful


                        after spending a lot of your  EFFORTS  and  TIME . . .



Answer by kohkche(3) About Me  (Show Source):
You can put this solution on YOUR website!
3 * 300 for numbers 1 - 3000,
4*20 more for 3000 - 3400,
5 more for 3400 - 3449,
8 more for 3450 - 3456
3*300 + 4*20 + 5 + 8 = 993