Take Input One Side Length Of A Cube And Print It's Volume
Please do correctly java program
Answers
Answered by
1
Answer:
import java.util.Scanner;
class Volume
{
public static void main(String []args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Please input side of a cube: ");
Double side = sc.nextDouble();
Double volume = Math.pow(side, 3);
System.out.println("The volume of the cube: " + volume);
}
}
eZ
Similar questions