Area of the biggest ellipse inscribed within a rectangle | C ++ Program to find the biggest ellipse which can be inscribed within the rectangle ; Function to find the area of the ellipse ; The sides cannot be negative ; Area of the ellipse ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float ellipse ( float l , float b ) { if ( l < 0 b < 0 ) return -1 ; float x = ( 3.14 * l * b ) / 4 ; return x ; } int main ( ) { float l = 5 , b = 3 ; cout << ellipse ( l , b ) << endl ; return 0 ; }