Question -3
Write a program in java to calculate and display the side of a cube taking
its volume as an input.
Hint : Side of a cube Yvolume
Answers
Answered by
4
Explanation:
import java. util. scanner;
class VolumeOfCube1
{
public static void main (string args[])
{
double side = Double. parseDouble(args[0]);
double volume = side*side*side
System.out.println("Volume of cube is:" + volume);
------------------------------------------------------------------
Answered by
50
Explanation:
import java. util. scanner;
class VolumeOfCube1
{
public static void main (string args[])
{
double side = Double. parseDouble(args[0]);
double volume = side*side*side
System.out.println("Volume of cube is:" + volume);
_______________________________
Mark (@BangtanARMYOT7) as Brainliest!
Similar questions