My code is working perfectly, except for one thing. I need to display my output in the following format:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
(no more than 5 numbers per line)
What I'm getting is this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
My instructor told me to use mods, but we never went over that in class, and I can't find it in the book. Any help would be very much appreciated.