so I\'m having an issue with my loops, where the intention is to fill through the whole months before moving to the next line, like so
January 2000
As Perdi Estaquel saied, you've missed one more loop.
for (month = 1; month < 12;) {
}
only enables days output once a month, and you need to do it like this.
for (month = 1; month < 12;) {
// month and header output stay unchanged
for (int calendarLine = 1; calenderLine <= 5; calenderLine++) {
// your calender output here
}
}