Satz des Pythagoras
function pythagorean ($a, $b) {
$sum = pow ($a , 2 ) + pow ($b , 2);
$c = sqrt ($sum);
return $c;
}
echo 'Der Satz des Pythagoras lautet: ' , pythagorean(17 , 4);
function pythagorean ($a, $b) {
$sum = pow ($a , 2 ) + pow ($b , 2);
$c = sqrt ($sum);
return $c;
}
echo 'Der Satz des Pythagoras lautet: ' , pythagorean(17 , 4);