Write a program in java accept the radius of a sphere and calculate its volume and display it.[Formula : Volume of sphere =4/3πr^3.
Answers
Answered by
1
Answer:
Explanation:
Mass Volume Of Sphere
public static void main(String args[])
Scanner s= new Scanner(System.in);
System.out.println("Enter the radius of sphere:");
double r=s. next Double();
double volume= (4*22*r*r*r)/(3*7);
System.out.println("Volume is:" +volume);
Answered by
0
Answer:
The volume of a sphere is calculated by using formula:
v = (4/3)*(22/7)*r3
Write a program to calculate the radius of a sphere by taking its volume as an input.
Hint: radius = ∛(volume * (3/4) * (7/22))
Similar questions