3.
|
To
find simple interest. Hint: SI = (P * R * N)/100 and compound interest.
|
#include<stdio.h>
#include<conio.h>
void main()
{
int p;
float r,si,t;
clrscr();
printf("Enter The Principal Amount=");
scanf("%d",&p);
printf("Enter The Time In Years=");
scanf("%f",&t);
printf("Enter The Rate Of Interest=");
scanf("%f",&r);
si=(p*r*t)/100;
printf("The Simple Interest Is=%.2f",si);
getch();
}
Comments
Post a Comment