#include<iostream.h>
#include<conio.h>
class arith
{
private :
float a,b;
public :
void getdata();
void putdata();
float sum();
float sub();
float mul();
float div();
};
void arith::getdata()
{
cout<<"Enter any two numbers: "<<endl;
cin>>a>>b;
}
void arith::putdata()
{
cout<<endl<<"The Entered numbers are : "<<endl;
cout<<"a= "<<a<<endl;
cout<<"b= "<<b<<endl;
cout<<"The result of addition of two no is: "<<sum()<<endl;
cout<<"The result of subtraction oftwo no is: "<<sub()<<endl;
cout<<"The result of multiplication of two no is:"<<mul()<<endl;
cout<<"The result of division of two no is: "<<div()<<endl;
}
float arith::sum()
{
return(a+b);
}
float arith::sub()
{
return(a-b);
}
float arith::mul()
{
return(a*b);
}
float arith::div()
{
return(a/b);
}
int main()
{
class arith obj;
clrscr();
obj.getdata();
obj.sum();
obj.sub();
obj.mul();
obj.div();
obj.putdata();
getch();
return 0;
}