10 MAXITER=24 20 LET C$="######################################" 30 FOR Y=-39 TO 39 40 FOR X=-39 TO 39 50 CREAL=X/20 70 CIMAG=Y/20 80 ZREAL = CREAL 90 ZIMAG = CIMAG 95 COUNT = 1 100 ZM = ZREAL*ZREAL 105 ZN = ZIMAG*ZIMAG 107 ZL = ZM+ZN 110 IF ZL>4 THEN GOTO 165 120 ZR2=ZM-ZN+CREAL 130 ZIMAG=ZREAL*ZIMAG*2+CIMAG 140 ZREAL=ZR2 150 COUNT=COUNT+1 160 IF COUNT