package class1_1_HelloWorld; import java.util.Scanner; public class PyramidVolume { public static void main(String[] args) { double area; double height; double volume; Scanner in = new Scanner(System.in); System.out.println("Enter the area: "); area = in.nextDouble(); System.out.println("Enter the height: "); height = in.nextDouble(); volume = area*height/3.0; System.out.println("The volume is: "+volume); } }