ChipMaster's bwBASIC
This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 10 REM 'ON-ERROR-GOTO' TEST PROGRAM
- 20 ON ERROR GOTO 100
- 30 PRINT "ENTER A NUMBER AND IT'S INVERSE WILL BE COMPUTED";
- 40 INPUT N
- 45 IF N = -999 THEN 999
- 50 A=1/N
- 60 PRINT "THE INVERSE OF";N;"IS";A
- 70 GOTO 30
- 100 PRINT "THE INVERSE OF 0 CANNOT BE COMPUTED - TRY AGAIN"
- 110 RESUME 30
- 999 END
|