All the positive perfect squares 1, 4, 9, 16, 25.... are written in strictly ascending order of magnitude and without the commas and spaces, resulting in the following infinite string:
Reading left to right, what is the 2010th digit in the above pattern?
No, wait a minute. On looking more closely at your QuickBasic code, the problem lies not in the variable initialization, but in the STR$() function like you said. Maybe it does that to facilitate output formatting?