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
/
exercises3
/
exB.c
blob
cdf9c73485c167d4719abeeea6efc95f8f6c09e7
1
#include<stdio.h>
2
3
int
main
()
4
{
5
int
year
;
6
printf
(
"Enter a year:"
);
7
scanf
(
"%d"
,&
year
);
8
9
(
year
%
4
==
0
?
printf
(
"This is a leap year
\n
"
):
printf
(
"This is not a leap year
\n
"
));
10
11
return
0
;
12
}