For example, here is the routine that draws the chessboard using nested FOR loops.