Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Simple Interest
SUBMITTED BY:
Guest
DATE:
March 6, 2014, 9:13 a.m.
FORMAT:
C#
SIZE:
452 Bytes
Raw
Download
Tweet
HITS:
1372
Go to comments
Report
#
include
<
stdio
.
h
>
#
include
<
conio
.
h
>
void
si
();
void
main
()
{
clrscr
();
si
();
getch
();
}
void
si
()
{
int
p
,
r
,
n
;
printf
(
"To Find Simple Interest"
);
printf
(
"\n\nEnter Principle Amount"
);
scanf
(
"%d"
,
&
p
);
printf
(
"\nEnter Rate of Interest"
);
scanf
(
"%d"
,
&
r
);
printf
(
"\nEnter Period in Years"
);
scanf
(
"%d"
,
&
n
);
printf
(
"\nThe simple interest is Rs. %d"
,(
p
*
r
*
n
)
/
100
);
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus