To calculate the area of ellipse you need to know the radius 1 and radius 2 of the ellipse.

**Variables:**

1. r1 : (Datatype int): to represent the radius 1 of the ellipse.

2. r2 : (Datatype int): to represent the radius 2 of the ellipse.

3. PI : (Datatype float): static variable to represent constant PI value up to 3 decimal places i.e 3.142

5. area_of_ellipse : (Datatype long): to store area of ellipse calculated.

**Formula:**

Volume of Ellipse : π x r1 x r2

```
/*
* 1000+ C programs + tutorials
*
*
* 11_calculate_area_of_ellipse.c
*
*
* Created on: Oct 20, 2014
* Author: Code2care.org
*/
#include <stdio.h>
//#include <conio.h>
void main() {
int r1,r2;
float PI = 3.142;
long area_of_ellipse;
// clrscr();
printf(" Program to calculate Area of a Ellipse : \n\n");
printf(" Enter Radius1 of Ellipse : ");
scanf("%d", &r1);
printf("\n\n Enter Radius2 of Ellipse : ");
scanf("%d", &r2);
area_of_ellipse = PI*r1*r2;
printf("\n\n Area of Ellipse with radius1 as %d and radius2 as %d = %ld",r1,r2,area_of_ellipse);
// getch();
}
```

**Output:**

```
Program to calculate Area of an Ellipse :
Enter Radius1 of Ellipse: 40
Enter Radius2 of Ellipse: 50
Area of Ellipse with radius1 as 40 and radius2 as 50 = 6284
```

The best way to learn C programming is to practice more and more programs. Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.

BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.

**More Posts related to C-program,**

- Calculate Volume of Cylinder
- Calculate Volume of Sphere
- Calculate Volume of Cube
- Calculate Volume of Ellipsoid
- Find Sum of two numbers
- Division between two numbers
- Calculate Area of Trapezoid
- Calculate Area of a Rectangle
- Calculate Volume of Pyramid
- Calculate Area of ellipse
- Find Difference of two numbers
- Calculate Volume of Cone
- Calculate Area of Square
- Calculate Area and Circumference of Circle
- Calculate Area of Parallelogram

**More Posts:**

- SharePoint Server 2016 IT Preview Deprecated Removed features - SharePoint
- How to make jsfiddle bootstrap ready - CSS
- How to enable line numbers in Eclipse - Eclipse
- Parsing Data for android-21 failed unsupported major.minor version 51.0 - Android
- SDK Manager: failed to install : Android Studio on Windows - Android-Studio
- Remove ActionBar from Activity that extends appcompat-v7 - Android
- Loading previous page using html button using JavaScript - JavaScript
- Tutorial : Simple Lightweight Pure CSS based Vertical Navigation Menu - CSS
- Calculate Area and Circumference of Circle - C-Program
- Gmail Error Bad Request Your client has issued a malformed or illegal request - Google
- How to Apply Themes to Notepad++ - NotepadPlusPlus
- [Solved] SharePoint Access Denied error editing Document Name - SharePoint
- Calculate Volume of Cube - C-Program
- The service instance "Microsoft SharePoint Insights" could not be provisioned because of the following error: Authentication information for SPInsights service has not been set yet - SharePoint
- Use Netbeans keyboard shortcuts in Android Studio - Android-Studio