Write a program to find SI and total amount by giving P,R,T ?

                 C PROGRAM TO FIND SI &

                          TOTAL AMOUNT

              
                                     Best C programming app is Dev c++

PROGRAM:-

#include<stdio.h>
int main()
{
float P,R,T,SI;
printf("Enter the Principal:");
scanf("%f",&P);
printf("Enter the Rate of Interest:");
scanf("%f",&R);
printf("Enter the Time:");
scanf("%f",&T);
SI=P*R*T/100;
printf("Simple Interest=%f\n",SI);
printf("Total Amount=%f",SI+P);
return 0;
}

OUTPUT:

Enter the Principal:15000
Enter the Rate of Interest:24
Enter the Time:6
Simple Interest=21600.000000
Total Amount=36600.000000




Thank you all -----

Follow my blog for more programming knowledge...

------------------x----------------------x-------------------------x------------------

Comments

Popular Posts