A Ellipsoid has 3 radii, so you need to ask the user to input these 3 radii and store in int variables r1,r2, and r3. PI value is needed to calculate the volume of Ellipsoid.

**Variables :**

```
1. r1 : (Datatype int): to represent the radius 1 of Ellipsoid.
2. r2 : (Datatype int): to represent the radius 2 of Ellipsoid.
3. r3 : (Datatype int): to represent the radius 3 of Ellipsoid.
4. PI : (Datatype float): static variable to represent constant PI value up to 3 decimal places i.e 3.142
5. volume_of_ellipsoid : (Datatype float): to store volume of Ellipsoid calculated.
```

**Formula :**

**Volume of a Ellipsoid : (4/3) x ? x radius1 x radius2 x radius3**

```
/*
* 1000+ C programs + tutorials
*
*
* 15_calculate_volume_of_ellipsoid.c
*
*
* Created on: Oct 20, 2014
* Author: Code2care.org
*/
#include <stdio.h>
//#include <conio.h>
void main() {
int r1,r2,r3;
float volume_of_ellipsoid;
float PI = 3.142;
// clrscr();
printf(" Program to calculate Volume of an Ellipsoid : ");
printf("\n\n Enter the Radius 1 of Ellipsoid : ");
scanf("%d", &r1);
printf("\n\n Enter the Radius 2 of Ellipsoid : ");
scanf("%d", &r2);
printf("\n\n Enter the Radius 3 of Ellipsoid : ");
scanf("%d", &r3);
volume_of_ellipsoid = (4/3)*(PI*r1*r2*r3);
printf("\n\n Volume of Ellipsoid with (r1,r2,r3) as (%d,%d,%d) = %f",r1,r2,r3,volume_of_ellipsoid);
// getch();
}
```

**Output:**
Program to calculate Volume of an Ellipsoid :
Enter the Radius 1 of Ellipsoid: 2
Enter the Radius 2 of Ellipsoid: 4
Enter the Radius 3 of Ellipsoid: 6
Volume of Ellipsoid with (r1,r2,r3) as (2,4,6) = 150.815994

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.

Facing issues? Have Questions? Post them here! I am happy to answer!

**Author Info:**

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

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

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

**More Posts:**

- TextEdit: Disable Autocorrect Option (Mac) - MacOS
- How to check zsh installed version using terminal - MacOS
- How to delete SharePoint Online List Item using REST API - SharePoint
- How to use HashTags # correctly on Social Media Facebook Twitter - HowTos
- How to convert Milliseconds to Date in Java 8 and Above - Java
- How to List the SHA Digest of Docker Images - Docker
- SharePoint error cannot connect to the configuration database - SharePoint
- How to Identify installed PowerShell version - Powershell