posted 5 years ago
I have written a program that calculates the first 100 pentagonal numbers. The problem is that I am supposed to output the answers with 10 answers on each line of the output. I have no idea how to do this. I am guessing that I would want to write a loop and format the output in the loop??? Is any other way to format the output without writing another loop? Here is what I have so far...