title: Volume of Sphere
body: <p>Hey guys I'm curious about the computation here. The volume of the sphere equation is Volume of Sphere = (4.0/3.0)πr^3. Can anyone explain why for the equation, I can't just put sphereRadius * 3 instead of writing sphereRadius 3 times in a row? I hope this question is clear.</p>
  
  <p>Thanks for the help. </p>
  
  <pre><code>import java.util.Scanner;
  public class SphereVolumeCalculator {
  public static void main (String [] args) {
    Scanner scnr = new Scanner(System.in);
    double piVal = 3.14159;
    double sphereVolume;
    double sphereRadius;
  
    sphereRadius = scnr.nextInt();
  
    sphereVolume = (4.0 / 3.0) * piVal * (sphereRadius * sphereRadius * 
    sphereRadius);
  
    System.out.println(sphereVolume);
     }
  }
  </code></pre>