C program to calculate simple interest for SEE and NEB
Introduction:
Calculating simple interest is a fundamental concept in finance and is essential to understanding various financial instruments, including loans, bonds, and deposits. In this article, we will discuss how to write a C program to calculate simple interest for SEE and NEB.
Before we dive into the program, let's first understand what simple interest is. Simple interest is the interest calculated on the principal amount for a specified period. It is calculated as follows:
Simple Interest = (Principal * Rate of Interest * Time) / 100
Where Principal is the amount on which the interest is calculated, Rate of Interest is the percentage rate of interest per annum, and Time is the duration for which the interest is calculated.
Now, let's write a C program to calculate simple interest. The program takes the Principal amount, Rate of Interest, and Time as inputs from the user and calculates the simple interest using the formula mentioned above.
#include<stdio.h>
#include<conio.h>
main()
{
int p;
float t,r,i,ma;
printf("\nInput Principal Amount:- ");
scanf("%d",&p);
printf("\nInput Time Period:- ");
scanf("%f",&t);
printf("\nInput Rate of Interest:- ");
scanf("%f",&r);
i=(p*t*r)/100;
ma=p+i;
printf("\nSimple interest = %f",i);
printf("\nActual Amount = %f",ma);
getch();
}
Output:
Conclusion:
Calculating Simple Interest is an important concept in finance and is often used to calculate the interest earned or paid on a principal amount over a specified time period. The C program to calculate Simple Interest for SEE and NEB is a simple program that can be used by students to calculate Simple Interest for their financial calculations. This program can be modified and used for other applications that require Simple Interest calculations as well.
You can also Read:
No comments:
Post a Comment