AD4BP

Write a programe for calculate simple interest.

#include< stdio.h >
#include< conio.h >
void main( )
{
int p,n;
float r,i;
clrscr( );
printf("Enter Value of p: ");
scanf("%d",&p);
printf("Enter Value of n: ");
scanf("%d",&n);
printf("Enter Value of r: ");
scanf("%f",&r);
i=p*r*n/100;
printf("Interest=%5.2f",i);
getch( );
}

Output:-
Enter Value of p: 10000
Enter Value of n: 3
Enter Value of r: 10.00
Interest=3000.00