Created
December 9, 2015 04:25
-
-
Save nghiatv/cbff1c8906267bd11e8c to your computer and use it in GitHub Desktop.
bai tap can bac n
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 can(float $num, int $lvl): float{ | |
$lvl = 1/$lvl; | |
$num = pow($num, $lvl); | |
return $num; | |
} | |
echo can(27, 5); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment