//Simple
interest
#include<iostream.h>
#include<conio.h>
void
main()
{
clrscr();
int
p,n,r,si;
cout<<"Enter
Principal Amount:";
cin>>p;
cout<<"Enter
Number of years:";
cin>>n;
cout<<"Enter
Rate of Interest:";
cin>>r;
si=p*n*r/100;
cout<<"Simple
interest="<<si;
getch();
}
No comments:
Post a Comment