Created
March 25, 2019 07:55
-
-
Save jasongorman/11dceb2dc003b62c440cd84ad585ffba 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 quote(struct Room *room, struct Carpet *carpet){ | |
float area = room->length * room->width; | |
if(carpet->roundUp){ | |
area = ceil(area); | |
} | |
return area * carpet->pricePerSqrMetre; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment