Meri kalam se
Wednesday, 16 February 2022
calculating simpleInterest in C
#include
<stdio.h>
int
main
()
{
int
principal
=
100
,
rate
=
4
,
years
=
1
;
int
SimpleInteret
= (
principal
*
rate
*
years
)/
100
;
printf
(
"The Simple interest is:
%d
"
,
SimpleInteret
);
return
0
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment