ProAnswers.org

Write a C program to find out the Simple Interest ?

#include

#include 

void main() 

{ 

float p,n,r,s; 

clrscr(); 

printf(“enter the p,n,r value:

”);

scanf(“%f%f%f”,&p,&n,&r); 

s=(p*n*r)/100; 

printf(“simple interest=%f”,s); 

getch(); 

} 

Output: 

enter the p,n,r value: 

30000 

2 

3 

simple interest=1800.000000