When you want to move to a new line, you need to print a new-line character. The decision on whether to do so is a decision (i.e., an if) and so a nested loop is not involved.
Type: Posts; User: tabstop
When you want to move to a new line, you need to print a new-line character. The decision on whether to do so is a decision (i.e., an if) and so a nested loop is not involved.
Print a new line character.
So at some point you're going to have to think. How do you want your table to print? If you are going to insist on nested loops (I don't know why you would, but that's your title) then you need to...