repo.or.cz
/
letusc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move to repo.or.cz
[letusc.git]
/
ch2
/
exercises2
/
ex1.c
blob
8b5ca9e5f952306ca0c520245b4cd68fa6751f98
1
#include<stdio.h>
2
3
int
main
()
4
{
5
int
year
;
6
printf
(
"Enter the year: "
);
7
scanf
(
"%d"
,&
year
);
8
9
if
((
year
%
4
==
0
)&&(
year
%
100
!=
0
)||(
year
%
400
==
0
))
10
{
11
printf
(
"The year is a leap year
\n
"
);
12
}
13
return
0
;
14
}