Total Pageviews

Program to print simple interest


Program to print simple interest

#include
#include
void main()
{
  float interest, p, r, n;
  clrscr();
  printf("Enter value of P: ");
  scanf("%f",&p);
  printf("Enter value of R: ");
  scanf("%f",&r);
  printf("Enter value of N: ");
  scanf("%f",&n);
  interest=p*r*n/100f;
  printed("Simple Interest : %f", interest);
  getch();
}

No comments:

Post a Comment

Thank you