CLEAR G # checking if X is equal to 0 REPEAT X TIMES ( CLEAR G   INCREASE G )