An Algorithm to find the simple interest. ( si = ( p*n*r ) / 100)

  1. START
  2. Input Principal amount as P.
  3. Input Number of Years as N.
  4. Input Rate of Interest R
  5. Calculate SI = ( P * N * R ) / 100.
  6. Print Value of SI.
  7. END

Flowchart to find the simple interest.

Write a program in C to find the simple interest.

#include<stdio.h>
void main()
{
float p,n,r,si;
printf("Enter the Principal Amount: ");
scanf("%f",&p);
printf("Enter the Number of Years : ");
scanf("%f",&n);
printf("Enter the Rate of Interest : ");
scanf("%f",&r);
si=(p*n*r)/100;
printf("The Simple Interest is : %.2f",si);
}