
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
class Rectangle
{
private:
float length;
float width;
public:
void Set(float l,float w)
{
length=l;
width=w;
}
void getArea()
{
float s;
s=length*width;
cout<<"该长方形的面积为:"<<s<<endl;
}
};
int main()
{
Rectangle r1;
float l,w;
cin>>l>>w;
r1.Set(l,w);
r1.getArea();
}
