#include <stdio.h>
int main() {
int p,n=5;
float r,t,si;
while(n>0)
{
printf("\nEnter principal,rate,time:");
scanf("%d,%f%f",&p,&r,&t);
si=(p*r*t)/100.0;
printf("\n SI=%d",si);
n--;
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: