I am having problems converting this formula V = 4/3 π r^3. I used Math.PI and Math.pow, but I get this error:
V = 4/3 π r^3
Math.PI
Math.pow
\';\
You're missing the multiplication operator. Also, you want to do 4/3 in floating point, not integer math.
4/3
volume = (4.0 / 3) * Math.PI * Math.pow(radius, 3); ^^ ^