The square command takes two mandatory arguments and one or two optional arguments. The mandatory arguments are points A and B.
square returns and draws the square ABCD, where the
square is traversed counterclockwise.
Input:
Output:
The optional third fourth arguments need to be
variable names, which will be assigned to vertex C (and
D).
Input:
Output:
Input:
Output: