Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 305 Bytes

surface_area_and_volume_of_a_box.md

File metadata and controls

11 lines (9 loc) · 305 Bytes

Description

Write a function that returns the total surface area and volume of a box as an array: [area, volume]

My Solution

def get_size(w,h,d)
  [2 * (w * d + h * d + w * h), w * h * d]
end