Skip to content

Instantly share code, notes, and snippets.

@adrianmarkperea
Created October 9, 2019 11:49
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 adrianmarkperea/520b6d9c4b95818d47767787de70b6d6 to your computer and use it in GitHub Desktop.
Save adrianmarkperea/520b6d9c4b95818d47767787de70b6d6 to your computer and use it in GitHub Desktop.
pi = 3.14
calculate_cylinder_volume(radius, height):
return (4/3) * pi * radius^2 * height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment