Sep-14-2020, 12:28 AM
Take a look at implementation of the
get_amount_inside
function. You have condition that does not work. Code blocks in after if
and after else
statements are the same. Moreover, you compute area and divide it to production of width and height (i.e. area too). This is why you got 1. I don't understand what get_amount_inside
means. amount of what?