Welcome Guest, Not a member yet? Create Account  

Java program to find volume of cube
#1

Program

Code:
package com.altgrescwalkerjava;

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

Code:
Volume of Cube :125.0
Code:
01010100 01101000 01100001 01101110 01101011 00100000 01111001 01101111 01110101 00100001
Likes 0




  1 Guest(s)