if(isset($_GET["tl"])) { $a = $_GET["a"]; $b = $_GET["b"]; $c = $_GET["c"]; if(is_numeric($a) && is_numeric($b) && empty($c)) { $c = sqrt(pow($a,2)+pow($b,2)); } else if(is_numeric($a) && empty($b) && is_numeric($c) && $c>$a) { $b = sqrt(pow($c,2) - pow($a,2)); } elseif(is_numeric($b) && is_numeric($c) && empty($a) && $c>$b) { $a = sqrt(pow($c,2) - pow($b,2)); } elseif(is_numeric($a) && is_numeric($c) && empty($b) && $c<=$a + $b) { if($c == sqrt(pow($a,2)+pow($b,2))) { $pravouhly = "Je to pravoúhlý trojúhelník"; } else { $pravouhly = "Není to pravoúhlý"; } } else { echo "Nezadal jsi správné hodnoty "; } } ?>