Quote Originally Posted by Iron Hide View Post
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?