posted 16 years ago
actually, your second loop never even executes. you start by setting uni to 'A', which is 65. col is less than 5, so you increment both, specifically making uni 66.
you then hit "while uni <= 65..." this is false, so this check stops, and you never enter this loop. if you take out that loop in its entirety, you code still runs exactly the same.
what i think you want to do is wrap this:
in a while loop, as long as uni is less than 124. You'll also need to reset col each time you exit the inner loop.
something like
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors