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
Chemistry,
5 months ago
Math,
5 months ago
English,
9 months ago
Math,
9 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago