write a C program to calculate simple interest
Answers
Answered by
3
Answer:
#include<stdio.h>
int main()
{
int p,r,t,int_amt;
printf("Input principle, Rate of interest & time to find simple interest: \n");
scanf("%d%d%d",&p,&r,&t);
int_amt=(p*r*t)/100;
printf("Simple interest = %d",int_amt);
return 0;
}
Explanation:
Sample Output:
Input Data: p = 10000, r = 10% , t = 12 year
Input principle, Rate of interest & time to find simple interest:
Simple interest = 12000
Similar questions