Computer Science, asked by Anonymous, 10 months ago

Declare variables named l, b and h. Initialize them with values 8, 9 and 10 respectively. Calculate the volume of cuboid, store it in another variable named vol and print the result. write code in javascript

Answers

Answered by Almas0149
0

Program:

class Cuboid

{

public static void main(String args[])

{

int l,b,h;

l=8;

b=9;

h=10;

int vol=l*b*h;

System.out.println("Volume="+vol);

}

}

Hope it helps....

Similar questions