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
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
Math,
5 months ago
Business Studies,
5 months ago
Math,
5 months ago
English,
10 months ago
Math,
10 months ago
Social Sciences,
1 year ago
Math,
1 year ago