Compute diagonals

Use the idea of a quadrilateral to infr the number of diagonals for
squares.