leap: iteration 1
This commit is contained in:
parent
e1d89f3467
commit
e5991ec511
1 changed files with 12 additions and 0 deletions
12
cpp/leap/leap.h
Normal file
12
cpp/leap/leap.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#define EXERCISM_RUN_ALL_TESTS
|
||||
|
||||
namespace leap {
|
||||
|
||||
inline bool is_leap_year(int year)
|
||||
{
|
||||
return !(year % 4) && ((year % 100) || !(year % 400));
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue