The line of code in the book immediately before the line containing the comment "Underline each heading" contains an error. The code in the book is
Code:
for(i = 0; i <= size; i++)
This causes the column headings to be 0-12 instead of 1-12. The program outputs the correct multiplication facts; however, they are displayed under columns 0-11. Column 12 is blank.
The correct code should be
Code:
for(i =1; i <= size; i++)
respectfully submitted.
drpepper
well phooey... I had the wrong line of code. The error was mine. I had typed the incorrect code in the line for outputting column headings. My apologies. (I found no way to delete the post.)