This program is calculating the simple interest. In this program we used principle interest, rate of interest, time period,and simple interest
CODES:
- #include<stdio.h>
- #include<conio.h>
- int main ( )
- {
- float p,r,t,si;
- printf ("enter the principle interest");
- scanf ("%f",&p);
- printf (" enter the rate of interest");
- scanf ("%f",&r);
- printf ("enter the time period");
- scanf ("%f",&t);
- si=p*r*t/100;
- printf ("simple interest is =%f",si);
- getch( );
- }
INPUT:
- enter the principle interest 1200
- enter the rate of interest 10
- enter the time period 4
OUTPUT:
simple interest is= 480 Editor : Mr.Sagar