constructors2


Submit solution

Points: 10
Time limit: 2.0s
Memory limit: 12M

Author:
Problem type
Allowed languages
C++

OBJECTIVE

Create a class rectangle with data members as length l, height h , a constructor to initialize the l, h integer values, and a member function area( ) to calculate and display the area of the rectangle.

Constraint

A code template is given with areas that you can edit. Complete the template and achieve the objective.

Input Format:

No input

Output Format:

single line, with detailing the value of the variable.

NOTE:

You need not edit/worry about the input or output, the template will take care of that. Just fill in the code to complete the objective.

Sample Input ( not given by the user):

4 5

Sample Output:

The area of the circle is 20


Comments

There are no comments at the moment.