230 DATA "HEX$ ='':X = DEC: FOR I = 1 TO 10:X = X / 16: IF X = > 1 THEN NEXT I"
240 DATA "J = I: FOR I = 1 TO J:A =INT (16 * X):X = 16 * X - A:HEX$ = HEX$ + CHR$ (A + 48 + 7 * (A > 9)): NEXT I: IF HEX$ < > '0' THEN PRINT ' HEX$ = ';HEX$"
250 DATA "IF HEX$ = '0' THEN PRINT 'ENTER': PRINT: PRINT ' DEC = 1958': PRINT : PRINT ' FOR EXAMPLE. THEN EXEC DECTOHEX'"
260 DATA "DEC = 0: IF HEX$ < > ''THEN FOR I = 1 TO LEN (HEX$):X$ = MID$ (HEX$,I,1):X = ASC(X$) - 48 - 7 * (X$ > '9'): DEC = 16 * DEC + X: NEXT I: PRINT ' DEC = ';DEC"