#include
using namespace std;
void main(void)
{
class Rectangle
{
public:
void perimer(int width,int length);
void area(int width,int length);
private:
int width,length;
};
inline void Rectangle::perimer(int width,int length)
{
cout<<"width:"<<width<<" "<<"length:"<<" "<<length;
cin>>width>>length;
perimer=width+length;
}
inline void Rectangle::area(int width,int length)
{
cout<<"width:"<<width<<" "<<"length:"<<" "<<length;
cin>>width>>length;
area=width*length;
}
void main(void)
{
Rectangle g;
g.perimer();
g,area();
}
}