Hopefully the title wasn't confusing, but basically what I want to do is take the result of my for loops and print it like this:
0, 1, 2, 3, 4
5, 6, 7, 8, 9
So if I have a user input value of say 5 I can have my for loops print out 5 at a time.
I've been looking all over and I can't figure out how to do it.
Try to guide OP to a solution instead of providing one directly.
Provide links to related resources.
Answer the question and highlight side-issues if any exist.
Don't "answer and run", be prepared to respond to follow up questions.
Proofread your answers for clarity and correctness.
Try out suggestions you get and report back.
SSCCE Keep your code Short, Self Contained, Correct (Compilable) and provide Example
Include the error you get when running the code, if there is one.
Ensure your example is correct. Either the example compiles cleanly, or causes the exact error message about which you want help.
Avoid posting a lot of code in your posts.
Posting homework assignments is not prohibited if you show that you tried to solve it yourself.