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.