Back To Java Basics Index
//program to find volume of box based on width,depth and height public class volume { public static void main(String[] args) { float width,depth,height; float volume; width=10; depth=20; height=30; volume=width*depth*height; System.out.println("volume of the box is " + volume); } }