#include<stdio.h>
#include<conio.h>
void main()
{
int p,n;
float r,si;
printf("\nEnter Principal Amount : ");
scanf("%d", &p);
printf("\nEnter Rate of Interest : ");
scanf("%f", &r);
printf("\nEnter Period of Time : ");
scanf("%d", &n);
si = (amount * rate * time) / 100;
printf("\nSimple Interest : %f", si);
getch();
}
No comments:
Post a Comment