#include <iostream>
class Rectangle{
private:
int length;
int width;
public:
Rectangle(int l, int w) : length(l), width(w){};
int calculate(){
return length*width;
}
};
int main() {
int l = 0;
int w = 0;
std::cin>>l;
std::cin>>w;
Rectangle rect(l,w);
std::cout<<rect.calculate()<<std::endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: