program to find simple interest and amount.
#include<stdio.h>
int main()
{
int si,p,t,r,A;
printf("enter the value of P,T,R\n");
scanf("%d%d%d",&p,&t,&r);
si=p*t*r/100;
A=p+si;
printf("the simple interest is %d\n",si);
printf("the amount is %d",A);
return 0;
}
- Check on youtube also
- https://www.youtube.com/watch?v=kSlITmg1dA8&list=PLFQjslN0wEAK-eSX_fp9mTHM3SDGLqEqb&index=2
Tags:
C courses