Deviopath › Swift

Rectangle Area

Easy · Structs

A struct groups stored properties. Rect is already defined with w and h. Write area(_:) that returns w * h.

Next: Variadic Sum