Unformatted text preview: double volume = (double) x /3 * Math.PI * Math.pow(radius, 3); System.out.print("The volume of the sphere is " + volume +"."); } }...
View Full Document
This note was uploaded on 11/03/2009 for the course CS 01-111 taught by Professor Pradiphari during the Fall '09 term at Rutgers.
- Fall '09
- Computer Science