#include<iostream.h>
#include<conio.h>
#include<math.h>
class pawan
{
private:
float p,r,t;
public:
void getdata(float m,float n,float o)
{
p=m;
r=n;
t=o;
}
void display()
{
float s,u,w,x,y;
s=(1+r/100);
u=p*t;
w=u-p;
cout<<w;
}
};
main()
{
pawan a1;
clrscr();
float d,e,f;
cout<<"enter numbers p,r,t=";
cin>>d>>e>>f;
a1.getdata(d,e,f);
a1.display();
getch();
}
No comments:
Post a Comment