Volume of a Cuboid

Lee·2022년 8월 30일

Algorithm

목록 보기
85/92
post-thumbnail

❓ Volume of a Cuboid

Q. Bob needs a fast way to calculate the volume of a cuboid with three values: the length, width and height of the cuboid. Write a function to help Bob with this calculation.

✔ Solution

//#my solution
class Kata {
  static getVolumeOfCuboid(length, width, height) {
    // your code here
    return length * (width*height);
  }
}
profile
Lee

0개의 댓글