document.write( "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? \n" ); document.write( "
Algebra.Com's Answer #677550 by josgarithmetic(39617)\"\" \"About 
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. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You can also make a simple computer program in BASIC to count the zero digits for you:\r
\n" ); document.write( "\n" ); document.write( "-----
\n" ); document.write( "'count the zero digits in naturals from 1 to 500\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "t=0
\n" ); document.write( "alldigits$=\"\"
\n" ); document.write( "for i=1 to 500
\n" ); document.write( "alldigits$=alldigits$+str$(i)
\n" ); document.write( "next i\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "let b=len(alldigits$)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for j=1 to b
\n" ); document.write( " if mid$(alldigits$,j,1)=\"0\" then t=t+1
\n" ); document.write( "next j\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "print \"Those numbers contain \"+str$(t)+\" of the zero digit.\"\r
\n" ); document.write( "\n" ); document.write( "-----
\n" ); document.write( "
\n" );