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
/
examples
/
example3.c
blob
a1182b267bb89518eefcf016a2f6ec2421a7da6c
1
#include<stdio.h>
2
3
int
main
()
4
{
5
int
hire_year
,
current_year
;
6
float
bonus
;
7
8
printf
(
"Enter the hire year: "
);
9
scanf
(
"%d"
,&
hire_year
);
10
11
printf
(
"Enter the current year: "
);
12
scanf
(
"%d"
,&
current_year
);
13
14
if
((
current_year
-
hire_year
)>
3
)
15
{
16
bonus
=
2500
;
17
printf
(
"Bonus is set to 2500/-
\n
"
);
18
}
19
printf
(
"bye
\n
"
);
20
21
return
0
;
22
}