XP Math - Forums - View Single Post - Intermediate How Many Ones?
Thread
: Intermediate
How Many Ones?
View Single Post
09-03-2010
#
10
court4298
Join Date: Sep 2010
Posts: 3
Quote:
Originally Posted by
Sugengz
Using Mathematica the answer is 600,000...
Here is the code:
For[x = 1; y = 0, x <= 999999, x++; y = y + StringCount[ToString[x], "1"]]; Print[y]
thanks i needed help
court4298
View Public Profile
Send a private message to court4298
Find More Posts by court4298