SHARE
TWEET

wynikw3

a guest Jan 24th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $a = $_POST['a'];
  3. $b = $_POST['b'];
  4. $c = $_POST['c'];
  5.  
  6. if ($a+$b<$c || $a+$c<$b || $b+$c<$a)
  7. echo "Nie da sie zbudować trojkata";
  8.  
  9. elseif($a==$b && $a==$c)
  10. echo "Ten trojkat jest rownoboczny";
  11.  
  12. elseif ($a==$b && $c!=$a )
  13. echo "Ten trojkat jest rownoramienny";
  14.  
  15. elseif ($a*$a+$b*$b=$c*$c)
  16. echo "Ten trojkat jest prostokatny";
  17.  
  18. ?>
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