wsp_m0/www/public/upp4/inc/math.php
2024-09-03 14:45:07 +02:00

19 lines
355 B
PHP

<?php
function sum($t1, $t2){
$sum = $t1 + $t2;
return $sum;
}
function sub($t1, $t2){
$diff = $t1 - $t2;
return $diff;
}
function multiply($t1, $t2){
$prod = $t1 * $t2;
return $prod;
}
function divide($t1, $t2){
$kvot = $t1 / $t2;
return $kvot;
}
?>