Originally Posted by Iron Hide Where do I need to enter endl? I did it here: Code: if(i % numPerLine == 0){ cout << endl; Thanks You've already printed all the numbers by the time you get there, since that is after your loop. Perhaps you intended to place it inside the loop?
if(i % numPerLine == 0){ cout << endl;