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
Computer Science,
24 days ago
Math,
24 days ago
Math,
1 month ago
English,
1 month ago
Hindi,
8 months ago