Using the knowledge of computational language in C++ code we found that this code can be written as:
The code can be found in the attached image.
So from the c++ code you can write the geometric figure as
#include <bits/stdc++.h>
struct Point {
int x, y;
};
bool doOverlap(Point l1, Point r1, Point l2, Point r2)
{
if (l1.x > r2.x || l2.x > r1.x)
return false;
if (r1.y > l2.y || r2.y > l1.y)
return false;
return true;
}
/* Driver program to test above function */
int main()
{
Point l1 = { 0, 10 }, r1 = { 10, 0 };
Point l2 = { 5, 5 }, r2 = { 15, 0 };
if (doOverlap(l1, r1, l2, r2))
printf("Rectangles Overlap");
else
printf("Rectangles Don't Overlap");
return 0;
}
See more about C++ at brainly.com/question/19705654
#SPJ1