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