\input{preamble-standalone.ltx}
\begin{document}

% Ex. No. 31 (Section  4.5 : Create a square)

\begin{tikzpicture}[scale=1]
 \tkzDefPoints{0/0/A,2/0/B,2/2/C,0/2/D}
 \tkzDrawPolygon(A,...,D)
 \tkzDrawPoints(A,B,C,D)
\end{tikzpicture}

\end{document}