Created
November 4, 2022 18:26
-
-
Save saaeiddev/669cd330a3ba95ffee35a36b6c4b646b 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 Saeid_func($a , $b , $c , $d){ | |
if($a > $b && $c > $d){ | |
$a = $a * 2; | |
$b = $b / 2; | |
$x = $a + $b; | |
} | |
else{ | |
$a = $a; | |
$b = $b; | |
} | |
return $a ** $b + $c / $d; | |
} | |
$a = 24; | |
$b = 16; | |
$c = 6; | |
$d = 2; | |
$r = Saeid_func($a , $b , $c , $d); | |
if($r > 23){ | |
$z = $r * 3; | |
echo $z; | |
} | |
else{ | |
echo $r; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment