← Unit 1 · all exercises
Saved in this browser only

Volume of a box

Return the volume of a box: its length times its width times its height.

int volume(int length, int width, int height)

Solution.java
Loading editor…
Results

Examples

  • volume(2, 3, 4) → 24
  • volume(1, 1, 1) → 1

There are also 3 hidden tests you can't see. Solve the problem, not the examples.