cpp09/ex00/note.cpp

4 lines
98 B
C++

int days = 30 + (month + month / 8) % 2;
(year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)