Skip to content

Latest commit

 

History

History
executable file
·
14 lines (12 loc) · 247 Bytes

File metadata and controls

executable file
·
14 lines (12 loc) · 247 Bytes
struct Rectangle {
    private(set) var width: Double
    private(set) var length: Double
    
    var area: Double {
        return length * width
    }
    
    var circumference: Double {
        return (length + width) * 2
    }
}