1 declare astruct rectangle with an array of struct point and write a function area 5346509

1.     Declare astruct rectangle with an array of struct Point.

And write a function Area(struct rectangle) to estimate itsarea

i have this program until now

#include

#include

using namespace std;

struct structPoint{

       int x;

       int y;

       };

struct Rect

       {

       structPoint p;

       };

double area(Rect c);

int main(){

    Rect c;

    c.p.x = 4;

    c.p.y = 3;

  

    cout   

    system(“pause”);

    return 0;

}

double area(Rect c){

       return c.p.x *c.p.y;             

}

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now