C, C++/Code Keeping

윤년

batsalee 2024. 1. 21. 11:16

윤년

1. 윤년 개념

https://smallpants.tistory.com/66

 

2. C++ style Code

if( (year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0)) )
저작자표시 (새창열림)