© Gerald Friedland 2019
Gerald FriedlandBeginning Programming Using Retro Computinghttps://doi.org/10.1007/978-1-4842-4146-2_10

10. A Program

Gerald Friedland1 
(1)
Berkeley, CA, USA
 

In this chapter, you will understand what a program is and even write your first one. As usual, start with this screen:

../images/470770_1_En_10_Chapter/470770_1_En_10_Figa_HTML.jpg

Remember, the black blinking rectangle is called the cursor.

Let’s type a program. It begins with line numbers. Type this:

10 PRINT “HELLO MONA”

Press RETURN.

Then type this:

20 GOTO 10

Press RETURN.

The screen looks like this:

../images/470770_1_En_10_Chapter/470770_1_En_10_Figb_HTML.jpg

Then type this:

RUN

Press ...

Get Beginning Programming Using Retro Computing: Learn BASIC with a Commodore Emulator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.