Example: Point in a Rectangle

Checks whether point {x, y} is placed inside the rectangle {x1, y1} – {x2, y2}. The input data is read from the console and consists of 6 rows: the decimal numbers x1, y1, x2, y2, x и y (as it is guaranteed that x1 < x2 and y1 < y2).

Sample Input and Output

Input Output Visualization
2
-3
12
3
8
-1
Inside shop

results matching ""

    No results matching ""