O'Reilly logo

Learn to Program with Small Basic by Ed Price, Majed Marji

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2GETTING STARTED

image

Now we’ll walk through some code step-by-step, so you can learn about the important pieces. As you read, enter the examples, and we’ll explain how to run them and modify them. But don’t stop there: experiment to give your programs a personal touch. We’ve included exercises at the end of each section to help you become a programming master (like a Jedi, but without the dangerous lightsabers). Try out the exercises to hone your skills.

The Parts of a Program

Let’s explore the different parts of a program by looking at a simple example. Listing 2-1 shows a program similar to the Greetings.sb program you wrote in Chapter 1. Enter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required