Okay, so I'm suppose to modify and older program so that it increments the date set by the user.. When the days hit 30, the month should incrememnt.. When the month hit's 13 then the year should increment... Then it should display these..
As of now, the loop ends up displaying a bunch of junk.. I'm thinking this is because I'm calling the code out of scope.. Anyways, here's what I got :
Yes, nextDay is suppose to increase day by 1 and then when the day hits 30, increase the month by 1, and then when the month hit's 13, increase the year by one.. I realize now that showing each day increment is pointless though, but I do want to show the month when it is increased and the year.
What I was trying to do was increment year by one.. I first had it as
1 2 3 4
if (month == 13)
{
year = year+1
};
or something along those lines.. But with that, I still got junk.. So I figured maybe by using y, it would bring year into scope.. That didn't end up being the case -_-
edit: ignore the double == heh... So sleep deprived right now, it might explain why I'm not able to get this atm.
double edit: I ended up doing it with an ugly if if if if if loop, heh.. But at least it works! Thanks for the help you guys!