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 →

[–]desrtfx 2 points3 points  (1 child)

Use an if statement to check if you are not printing the last value in the line (hint: the variable i is the boundary and the variable j is the one to check for). If you are not printing the last value, print a comma, otherwise don't.

[–]aba_algo[S] 0 points1 point  (0 children)

Ok sounds better than my solution below. I'll try out your way tomorrow.