You are viewing a single comment's thread. Return to all comments →
int get_volume(box b) { /** * Return the volume of the box */ return b.height * b.length * b.width; }
int is_lower_than_max_height(box b) { /** * Return 1 if the box's height is lower than MAX_HEIGHT and 0 otherwise */ return (b.height<41)? 1 : 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Boxes through a Tunnel
You are viewing a single comment's thread. Return to all comments →
int get_volume(box b) { /** * Return the volume of the box */ return b.height * b.length * b.width; }
int is_lower_than_max_height(box b) { /** * Return 1 if the box's height is lower than MAX_HEIGHT and 0 otherwise */ return (b.height<41)? 1 : 0; }