Computer Science, asked by aadhi0808, 7 months ago

java program using mathematical function to calculate volume of sphere (4/3 πr^3) ​

Answers

Answered by Anonymous
13

Answer:

Java Program

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);

}

Explanation:

MAKE MY ANS BRAINLIEST

Similar questions