24 4. Now RUN the program. >RUN NOW GIVE ME A BIG NUMBER? 16 I SAID A BIG NUMBER ?20 I SAID A BIG NUMBER ?2000 12 TIMES 2000 IS 24000 NOW GIVE ME A BIG NUMBER? This program will go on running until you press ESCAPE . If you look you will see that if you give the value 0 for the number, the program never reaches line 50, so it can never end unless you press the panic button! Deleting part of a program Quite often you will want to delete a whole line or group of lines in your program. This is easy to do but don’t forget that if you type in a new line 20 (for example), it will automatically remove the old line 20 and replace it with your new one.
If you want to delete a line completely then type in just the line number and press RETURN : To delete a whole set of line numbers, for example, lines 50 to 70 inclusive, you can type 20 RETURN DELETE 50, 70 You cannot get these lines back once they are deleted – unless you can copy them off the screen, so use this with care. After you have deleted several lines – or if you have typed in lots of new lines you often find that you have a very odd set of line numbers. The command RENUMBER will make the computer go through your whole program renumbering all the lines so that they are given line numbers in a numeric sequence.
Here is an example of terrible programming style – but it will illustrate the RENUMBER command. Don’t bother to type it in – just look at it. >LIST 1 REM ** GOTO GOTO GOTO 2 REM WITH ACKNOWLEDGEMENTS TO 3 REM "COMPUTERS IN SCHOOLS" 4 REM THE JOURNAL OF MUSE 15 GOTO 100 16 GOTO 95 40 N=N+1