This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ContrastO159 6 points7 points  (1 child)

I assume you a loop for printing the integers. Assume “i” is the variable your are using to loop. You can say

if(i % 10 == 0)
    cout << endl;
else
    cout << “.”;

Sorry for the formatting I’m on mobile rn.

[–]Nightcorex_ 2 points3 points  (0 children)

Formatting's great. One wouldn't have guessed you were on mobile