I have to create a calendar for a single month and I'm starting by trying to figure out how to start a new line after every week. However, I'm not aloud to use if statements which sucks because I know how to use them. I can't think of any other way to do this without using a TON of for loops which is not acceptable for the assignment. We haven't covered while loops either so that's also not an option. Only for loops. I don't need to be given code because I'd rather use my own but any kind of help besides that would be appreciated.
This is what I have if I use an If statement:
Output:
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31