package class1_1_FirstProgram; // Josiah Yoder, MSOE, 09 September 2015 import java.util.Scanner; public class PyramidVolume { /* Whatever I write here the computer will ignore. Compmletely. */ public static void main(String[] args) { // Declaration -- define a space in memory // Again, ignored by computer int height; int area; Scanner in = new Scanner(System.in); //Scanner in2 = new Scanner(System.in); String s = new String("Hi"); String s2 = new String("Hi"); System.out.println("Enter the height: "); // Assign a value to the variable // Initialization -- first assignment height = in.nextInt(); System.out.println("Enter the area of the bases: "); area = in.nextInt(); double volume = height * area / 3; System.out.println("Volume: " + volume); } }