x = 1
c = 20
LET x = your age in years
LET c = 0
WHILE x > 1
INCREASE c BY 1
IF x is an even number
CHANGE x TO BE half its previous value
ELSE
CHANGE x TO BE three times its previous value
INCREASE x BY 1
ENDIF
ENDWHILE
REPEAT c TIMES
clap once
ENDREPEAT