In this easy coded program, you will learn how to calculate simple interest by taking input of principle amount, number of years and rate of interest from user.
Try adding final calculated amount which will include the principle amount plus the calculated simple interest in this program for your self practice.
---------------------------------------------------------------------------
Output
---------------------------------------------------------------------------
Hope you found this 'C Program to Calculate Simple Interest' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
Try adding final calculated amount which will include the principle amount plus the calculated simple interest in this program for your self practice.
---------------------------------------------------------------------------
Program to Calculate Simple Interest
/*Simple Interest*/
|
#include<stdio.h>
|
void main()
|
{
|
float
p, n, r, si;
|
printf("Enter
Principle Amount, No. of Years, Rate of Interest= ");
|
scanf("%f %f %f",
&p,
&n,
&r);
|
si
=
(p*n*r)/100;
|
printf("\nSimple Interest=
%f", si);
|
}
|
Output
Enter Principle Amount, No. of Years, Rate of Interest= 1000 10 10
Simple Interest= 1000.000000
---------------------------------------------------------------------------
Hope you found this 'C Program to Calculate Simple Interest' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
Comments
Post a Comment
Please do not comment any spam links in the comment box.