The shoelace algorithm


Solution P6.1.2