using namespace std;
class Retangle
{
public:
Retangle()
{
Length=0;
Width=0;
}
void setLW()
{
float x,y;
cout<<"input the length and width:"<<endl;
cin>>x>>y;
Length=x;
Width=y;
}
void Area()
{
cout<<"Area="<<Length*Width<<endl;
}
private:
float Length;
float Width;
};
void main()
{
Retangle abc;
abc.setLW();
abc.Area();
}