Skip to content

Instantly share code, notes, and snippets.

@nghiatv
Created December 9, 2015 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nghiatv/cbff1c8906267bd11e8c to your computer and use it in GitHub Desktop.
Save nghiatv/cbff1c8906267bd11e8c to your computer and use it in GitHub Desktop.
bai tap can bac n
<?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