An Accurate Computer

Publication: LISTing Newsletter
Date: February 1991
Pages: 3

AN ACCURATE COMPUTER…….

The following program was tried on the ATARI, OHIO SCIENTIFIC, PET TRS-80 MODI TRS-80 COLOR and the TI 99/4A:

10 FOR A=1 TO 100 STEP .1
20 PRINT A
30 NEXT A

Only the the ATARI and the TI printed the corrected list of numbers. The next program ran properly only on the TI.

10 PRINT "BEGIN"
20 FOR A=1 TO 0
30 PRINT A
40 NEXT A
50 PRINT "END"

All except the TI printed a 1 bewteen the “BEGIN” and “END” when the FOR-NEXT loop was not true.

These same two programs were tried on the ZX-81/TS 1000 and guess what. Our machine ran both and the correct responses were obtained. Not bad for a toy!

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.