Write a Java program to display volume of sphere.
Answers
Answered by
0
Answer:
A sphere is a perfectly round geometrical object in 3-dimensional space. It is the set of all the points located a particular distance away from a particular point called center. It is perfectly symmetrical and has no edges or vertices.
Formula: Volume= (4/3)*pie*r3
I hope this will help you
A sphere is a perfectly round geometrical object in 3-dimensional space. It is the set of all the points located a particular distance away from a particular point called center. It is perfectly symmetrical and has no edges or vertices.
Formula: Volume= (4/3)*pie*r3
I hope this will help you
Answered by
0
Explanation:
public class sphere{
public static void main(String args[])
{
int radius=48;
double pie=3.14285714286;
double volume=(4.0/3.0)*pie*(radius*radius*radius);
System.out.println("Volume of the sphere="+volume);
}
}
Similar questions