JakeTakeLake wrote:
ok i got it working. this is what helped me. i just made another spot variable. so when it matches a letter it takes up the spots of j AND i. thanks
That works, another (perhaps more natural) way of doing it would be to exit the innermost for loop when you find a letter (right after spostaken := spotstaken + 1). This would stop the program from matching a letter of word[/d] multiple times.
It's really a matter of preference, but I thought you might be interested in another way of approaching things.