1
$\begingroup$

In limited versions of BASIC, identifiers can be 1 or 2 characters long, but the first must be a letter and the second a letter or digit.

I thought that there are 26 possibilities for the first position and 36 for the second (26 + 10 for the digits), which would give 26*36 = 936 possible identifiers. The book however says the answer 962, so I'm not sure what I'm doing wrong.

  • 0
    Great! Thanks for that. I think it's worthwhile mentioning these references in case it saves the reader time. [I'll delete my original comment, since yours is the real source.]2012-10-23

1 Answers 1

1

You overlooked the $37$-th possibility for the second character: no second character at all, (i.e., a one-character identifier).

  • 0
    Ah, that makes sense. Thanks.2012-10-23