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
/
ex4.c
blob
188fa3746b9c8a084ccb0523c4e56a29439b06ad
1
/*library problem */
2
3
#include<stdio.h>
4
5
int
main
()
6
{
7
int
days
;
8
printf
(
"Enter the number of late days:"
);
9
scanf
(
"%d"
,&
days
);
10
11
if
(
days
<=
5
)
12
printf
(
"Fine is 50ps.
\n
"
);
13
else if
(
days
>=
6
&&
days
<=
10
)
14
printf
(
"Fine is Rs.1
\n
"
);
15
else if
(
days
<=
10
&&
days
<=
30
)
16
printf
(
"Fine is Rs.5
\n
"
);
17
else if
(
days
>
30
)
18
printf
(
"YOUR MEMBERSHIP IS CANCELLED
\n
"
);
19
20
21
return
0
;
22
}