// Exaple // // goal: read length, width, and height of prism, and out its area // and volume // import java.util.Scanner; class AreaVolume { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Input three measures "); int length = input.nextInt(); int width = input.nextInt(); int height = input.nextInt(); double area = 2*(length*width+width*height+length*height); double volume = length * width * height; System.out.println("The area is " + area); System.out.println("The volume is " + volume); } }