This program calculates the Simple Interest for 3 different values of P, N, R.
This program makes use of the For Loop, which is by far the most efficient loop used in C Programming.
int p, n, count;
float r, si;
printf ("Enter the values of p, n and r:");
scanf ("%d %d %f", &p, &n, &r);
si = p*n*r / 100 ;
printf ("Simple Interest = Rs. %f\n", si);
The file can be downloaded at: