Area

Description:

Write a class having two private variables and one member function which will return the area of the rectangle. Test Case 1 Input (stdin) 4 5 Expected Output 20 Test Case 2 Input (stdin) 6 7 Expected Output 42

Program :

#include <iostream>

using namespace std;

int main()

{

   int a,b,c;

  cin>>a;

  cin>>b;

  c=a*b;

  cout<<c;

return 0;

}