Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Aug 19, 2021
Embed
What would you like to do?
<?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