Program to Calculate Simple Interest

#include<stdio.h>
#include<conio.h>
void main()
{
int p, r, t, SI;
clrscr();
printf("\nEnter Principal");
scanf("%d",&p);
printf("\nEnter Rate");
scanf("%d",&r);
printf("\nEnter Time");
scanf("%d",&t);
SI=((p*r*t)/100);
printf("Simple Interest is%d",SI);
getch();
}

Leave a Reply