Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 19, 2021 18:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/1d1759e8eff61f728be3a2f4af0c7ce5 to your computer and use it in GitHub Desktop.
<?php
# https://parzibyte.me/blog
function volumenDeCono($radio, $altura)
{
return (M_PI * pow($radio, 2) * $altura) / 3;
}
$radio = 14.5;
$altura = 26.79;
$volumen = volumenDeCono($radio, $altura);
echo "El volumen es: " . $volumen;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment