Created
November 3, 2022 12:44
-
-
Save saaeiddev/909e7425782d613d67013036b0e11920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function My_func($a , $b , $c , $d , $e){ | |
if($a > 20 && $b < 10){ | |
$a = $a / 2; | |
$b = $b * 2; | |
} | |
else{ | |
$a = $a; | |
$b = $b; | |
} | |
return $a * $b - $c / $d + $e; | |
} | |
$a = 24; | |
$b = 9; | |
$c = 4; | |
$d = 7; | |
$e = 3; | |
$r = My_func($a , $b , $c , $d , $e); | |
echo $r; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment