Write a Python function to find the area of the triangle inscribed within the rectangle which in turn is inscribed in an ellipse
Topic: Write a Python function to find the area of the triangle inscribed within the rectangle which in turn is inscribed in an ellipse
Solution
def area(a, b): if (a < 0 or b < 0): return -1 A = a * b return A a = 5 b = 2 print(area(a, b))
List all Python Programs