Sunday, August 15, 2021

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/100;


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


  getch();

}

2 Comments:

At August 16, 2021 at 3:05 AM , Blogger Ajinkya Ballal said...

Hi

 
At August 16, 2021 at 7:00 AM , Blogger Unknown said...

Nice👍👍👍

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home