SOLUTION: A new colony was built and the builder gave contract to a sign marker to number the buildings from number 1 to 500. How many zeroes will he need?

Algebra ->  Test  -> Lessons -> SOLUTION: A new colony was built and the builder gave contract to a sign marker to number the buildings from number 1 to 500. How many zeroes will he need?      Log On


   



Question 1062596: A new colony was built and the builder gave contract to a sign marker to number the buildings from number 1 to 500. How many zeroes will he need?
Answer by josgarithmetic(39617) About Me  (Show Source):
You can put this solution on YOUR website!
This was asked about a week ago, and two tutors responded. Go back to them and pick the solution method you like the best.

You can also make a simple computer program in BASIC to count the zero digits for you:
-----
'count the zero digits in naturals from 1 to 500

t=0
alldigits$=""
for i=1 to 500
alldigits$=alldigits$+str$(i)
next i

let b=len(alldigits$)

for j=1 to b
if mid$(alldigits$,j,1)="0" then t=t+1
next j

print "Those numbers contain "+str$(t)+" of the zero digit."
-----