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]
/
ch1
/
examples
/
example2.c
blob
ac6be7f05f1d2775b2ecf0633d76d33ea047fc15
1
/*calculation of simple interest 2 */
2
/*using scanf */
3
4
#include<stdio.h>
5
6
void
main
()
7
{
8
int
p
,
n
;
9
float
si
,
r
;
10
11
printf
(
"Enter the value of p,n,r: "
);
12
scanf
(
"%d %d %f"
,&
p
,&
n
,&
r
);
13
14
si
=
p
*
n
*
r
/
100
;
15
16
printf
(
"
\n
%f
\n
"
,
si
);
17
}