Volume of a sphere problem
Hey, I got this problem for my school lab and I just don't get how to do it.
The problem is this.
"Write a method that takes in the radius of a sphere and returns it's volume the formula is v=4/2*3.14*r^3"
I don't really get how to do this r^3 business I know I have to use pow(double base, double exp) but it is not working for me.
Here is my code so far.
The lab is due monday and I hope someone helps me by than. Thank you for your help in advice!
public class math()
public double pow(double base, double exponent)
int v = (4/3)*3.14*pow;