SHARE
TWEET

Untitled

MartinGeorgiev Nov 23rd, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $x1 = floatval(readline());
  4. $y1 = floatval(readline());
  5. $x2 = floatval(readline());
  6. $y2 = floatval(readline());
  7. $x = floatval(readline());
  8. $y = floatval(readline());
  9.  
  10. if (($x == $x1 || $x == $x2) && ($y >= $y1 && $y <= $y2)) {
  11.     echo "Border";
  12. } else if(($y==$y1 || $y ==$y2) && ($x>= $x1 && $x <=$x2)) {
  13.     echo "Border";
  14. } else {
  15. echo "Inside / Outside";    
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top