题目描述

Write a class having two private variables defining a rectangle, and a member function which will return the area of the rectangle.


输入格式

the type of variables is int.


输出格式


样例数据

输入

5 4

输出

20

备注

The main function is provided, you only need to complete the Rectangle Class:

int main(){
    int length,width;
    cin>> length>>width;
    Rectangle rect;
    rect.setLength(length);
    rect.setWidth(width);
    cout<<rect.returnArea()<<endl;
}

操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解