Branching statements doesn’t work? Giving me a negative answer when it’s supposed to be positive

Your area calculation is wrong, area of circle is pir^2, but you have pir. And if you had checked what your area values came out as you would have seen that.

Leave a Comment