write a program to calculate simple interest
Answers
Answered by
8
Answer:
program
include < iostream.h >
void main()
{
int amount, rate, time, ans;
cout<<"\nEnter Principal Amount :";
cin>>amount;
cout<<"\nEnter Rate of Interest :";
cin>>rate;
cout<<"\nEnter Period of Time :";
cin>>time;
ans = (amount * rate * time)/100;
/*Simple interest formula*/
cout<<"\nSimple Interest :"<<ans;
}
i hope this will help
plz mark brainliest
Answered by
3
#include <studio.h>
main ()
{
int p,r,t,si = 0;
Printf ("principal,rate ,time and simple interest ");
Scanf ( "%d%d%d,"$p,$r,$t);
Si = (p*r*t)/100;
printf ("simple interest= %d,"si);
}
Similar questions