Take as input two opposite corners of a rectangle: (x1,y1) and (x2,y2). finally, the user is prompted for the coordinates of a third point (x,y). find whether the point (x,y) lies inside the rectangle.

Solved
Show answers

Ask an AI advisor a question