Created
March 26, 2019 08:28
-
-
Save jasongorman/01ae14f98990233dc8150f640101a318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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