The code I have is below. Im able to print them all onto one line but I need to print 10 per line separated by commas and Im not sure how to do that ):
1 2 3
for (int i = 0; i < MAXVALUE; i++){
for (int j = 0; j < counts[i]; j++){
output << i << ",";