jazykc
2013.3
upoljazykc
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Macros
Pages
isleap.c
1
2
#define isleap(year) ((!((year) % 4) && ((year) % 100)) || !((year) % 400))
3
4
int
main(
void
){
5
int
year, isleap;
6
7
for
(year = 1898; year < 2050; year++) {
8
isleap = (!(year % 4) && (year % 100)) || !(year % 400);
9
printf(
"%4d: %d\n"
, year, isleap);
10
}
11
}
Generated on Sat Dec 7 2013 22:57:26 for jazykc by
1.8.5