Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
452 B
4
Indexable
Never
if ((month == 4) || (month == 6) || (month == 9) || (month == 11)){
         if (day > 30) {
            day -= 30;
            month++;
        }
        else if (day < 1) {
            month--;
            if ((month == 4) || (month == 6) || (month == 9) || (month == 11)){
            day = day + 1;
            }
            else if  (day < 1) {
                day = day - 1;
                month ++;
            }
        } 
    }