Don,
Glad to help…just as long as you understand what the difference
between your code and my correction was.
Your code got one character and then went into the loop and just kept
going round and round with the value of c never changing.
My correction got the character at the top of the loop and then went
into the loop itself to set your counters…it then went back to the top of the
loop and waited for you to key in another character…and thus reset the value
of c.
Make sense?
Don