Skip to content

Instantly share code, notes, and snippets.

@adrianmarkperea
Last active October 9, 2019 11:59
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/5ea7b4c52494a40066804654da60e2d6 to your computer and use it in GitHub Desktop.
Save adrianmarkperea/5ea7b4c52494a40066804654da60e2d6 to your computer and use it in GitHub Desktop.
# value of pi
a = 3.14
# calculate the volume of a cylinder
# b -- radius
# c -- height
foo(b, c):
return (4/3) * a * b^2 * c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment