Computer Science, asked by debkotatoyanatha, 1 month ago

write a program to input the side of a cube.Print the volume of a cube .(hint :Volume of cube =Length 3​

Answers

Answered by ishantjaiswal0351
0

Answer:

i dont know 78;:-67++(((+++(((((((((

Answered by Anonymous
0

Answer:

import java.util.Scanner;

class VolumeOfCube  

{

     

 

 

  public static void main(String args[])  

   {    

       

 

           Scanner s= new Scanner(System.in);

       

           System.out.println("Enter the side of cube:");

           double side=s.nextDouble();

           double  volume=side*side*side;

           System.out.println("volume of Cube is: " +volume);

Explanation:

Similar questions