#include #include using namespace std; float area(float a, float b) { if (a < 0 || b < 0) //if the values are negative it is invalid return -1; float area = (3.1415 * (a*b * a*b))/(4 * (a*a + b*b)); return area; } int main() { float a = 8, b= 10; cout