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]
/
ch3
/
examples
/
exa1.c
blob
6f371b7f424965b88a82b46c54dc05ec335ad2ba
1
/*simple interest for 3 different persons*/
2
3
#include<stdio.h>
4
5
int
main
()
6
{
7
int
p
,
n
,
count
;
8
float
r
,
si
;
9
10
count
=
1
;
11
while
(
count
<=
3
)
12
{
13
printf
(
"Enter p, n and r:"
);
14
scanf
(
"%d %d %f"
,&
p
,&
n
,&
r
);
15
si
=
p
*
n
*
r
/
100
;
16
printf
(
"Simple Interest:Rs.%f
\n
"
,
si
);
17
count
++;
18
}
19
return
0
;
20
}