Thursday, April 8, 2021

4. Program to print simple interest

4. Program to print simple interest.

#include<stdio.h>
#include<conio.h>

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;

  printf("Simple Interest : %f", interest);

  getch();
}
#basics
@C_Codings

No comments: