06. Point on Rectangle Border гърмят ми #1,#3,#4,#5,#6 и #11-#18 тест
#include <iostream>
using namespace std;
int main() {
double x1, x2, y1, y2, x, y;
cin >> x1 >> y1
>> x2 >> y2
>> x >> y;
double onLeftSide = (x == x1) && (y >= y1) && (y <= y2);
double onRightSide = (x == x2) && (y >= y1) && (y <= y2);
double onUpSide = (y == y1) && (x >= x1) && (x <= x2);
double onDownSide = (y == y2) && (x >= x1) && (x <= x2);
if (onLeftSide || onRightSide || onUpSide || onDownSide) {
cout << "Border" << endl;
}else{
cout << "Inside/Outside" << endl;
}
return 0;
}