WAP to calculate simple interest

// Program for calculating the simple interest // 


#include<stdio.h>
#include<conio.h>
void main()
{
  float p,r,t,si;
  printf("Enter the principal amount\n");
  scanf("%f", &p);
  printf("Enter the rate of interest\n");
  scanf("%f", &r);
  printf("Enter the time period\n");
  scanf("%f", &t);
    si=(p*r*t)/100;
  printf("Simple Interest is:-  %f", si);
  getch();
}



  •    The Input and Output of this program are shown in the pictures below:-                                                                                                                                                                                                                                                                                                                                                                                                 INPUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             OUTPUT                                                                                                                                               

Comments