#include<stdio.h>
#include<conio.h>
void main() {
int ,p,t;
float si,r;
printf("pls enter principle amount");
scanf("%d",&p);
printf("pls enter rate of interest");
scanf("%f",&r);
printf("pls enter the time");
scanf("%d",&t);
si = (p*r*t)/100;
printf("simple interest %f",si);
getch();
}
0 Comments