Area of ellipse #include using namespace std; // Function to find area of an // ellipse. void findArea( float a, float b) { float Area; // formula to find the area // of an Ellipse. Area = 3.142 * a * b ; // Display the result cout << "Area: " << Area; } // Driver code int main() { float a = 5, b = 4; findArea(a, b); return 0;

Area of ellipse
#include<bits/stdc++.h>
using namespace std;
// Function to find area of an
// ellipse.
void findArea( float a, float b)
{
 float Area;

 // formula to find the area
 // of an Ellipse.
 Area = 3.142 * a * b ;

 // Display the result
 cout << "Area: " << Area;
}
// Driver code
int main()
{
 float a = 5, b = 4;

 findArea(a, b);

 return 0;

Comments