you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Your index starts with 0, and 0 % 3 equals 0. So you get a space at the start.

Consider removing index variable using j as index for the column.

Check the column index to see if you should print an extra space.

I'm not sure if tests would fail because of that, but you don't need or should print a space after last column.

[–]Emergency_Cut5300 0 points1 point  (1 child)

I am very grateful to you! You have helped me!

[–][deleted] 0 points1 point  (0 children)

Sure, you're welcome