java program using mathematical function to calculate volume of sphere (4/3 πr^3)
Answers
Answered by
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
English,
3 months ago
Math,
3 months ago
English,
3 months ago
English,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago