Percentage increase in volume of the sphere if radius is increased by a given percentage | Java program to find percentage increase in the volume of the sphere if radius is increased by a given percentage ; Driver code
import java . io . * ; class GFG { static void newvol ( double x ) { System . out . print ( " percentage ▁ increase ▁ in ▁ the " + " ▁ volume ▁ of ▁ the ▁ sphere ▁ is ▁ " + ( Math . pow ( x , 3 ) / 10000 + 3 * x + ( 3 * Math . pow ( x , 2 ) ) / 100 ) + " % " ) ; } public static void main ( String [ ] args ) { double x = 10 ; newvol ( x ) ; } }