Java program to find volume of cube



Program

package com.candidjava;

public class Cube {
	
	public static void main(String arg[]) {
		int side=5;
float volume=side * side * side;
System.out.println("Volume of Cube :"+ volume); } }

Output

Volume of Cube :125.0



Related Post

Comments


©candidjava.com