Computer Science, asked by pa1792980, 7 months ago

write a java program to find volume of cone where r = 14.7 h=7.35
V =1/3 :/pir2h​

Answers

Answered by imtiyazallam
2

Answer:

public class Volume {

   public static void main(String args[]) {

       double r = 14.7, h = 7.35, volume = 1 / 3 * 22 / 7 * Math.pow(r, 2) * h;

       System.out.println("Volume of the cone is " + volume);

   }

}

Similar questions