function pythagoras($a, $b) { return sqrt(pow($a, 2) + pow($b, 2)); } echo "Sisi miring segitiga dengan a=3, b=4 adalah: " . pythagoras(3, 4) . "";