Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created March 26, 2019 08:28
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 jasongorman/01ae14f98990233dc8150f640101a318 to your computer and use it in GitHub Desktop.
Save jasongorman/01ae14f98990233dc8150f640101a318 to your computer and use it in GitHub Desktop.
float circular_area(struct Room *room) {
/* a circular room requires cutting a square carpet of length/width 2 * radius */
return (2 * room->radius) * (2 * room->radius);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment