write a program of simple interest
Answers
Answered by
3
#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr();
int p,r,t,s.i;
cout<<" Enter principal amount=";
cin>>p;
cout<<"Enter rate=";
cin>>r;
cout<<"Enter time=";
cin>>t;
s.i=(p*r*t)/100;
cout<<"simple interest="<<s.i;
getch ();
}
hope this helps you...
#include<conio.h>
void main ()
{
clrscr();
int p,r,t,s.i;
cout<<" Enter principal amount=";
cin>>p;
cout<<"Enter rate=";
cin>>r;
cout<<"Enter time=";
cin>>t;
s.i=(p*r*t)/100;
cout<<"simple interest="<<s.i;
getch ();
}
hope this helps you...
Similar questions