An easy to use BASIC language
and IDE for education.

Tutorial One

Russian Translation Coming Soon.

Tutorial One - Welcome to BASIC-256

Welcome to BASIC-256! BASIC-256 is a programming language that you can use to write your very own computer programs. These tutorials will show you how, step-by-step.

A computer program is a set of instructions that tells a computer what to do. The computer reads the instructions one at a time, and does exactly what they say.

Here's an example:

print "Welcome to BASIC-256!!!"

If you type that line into the BASIC-256 editor, and click the [Run] button, you should see a welcome message printed out in the Text Output window. If you don't see a welcome message, make sure you typed it exactly as shown and try again.

Now how does this work? You might already have guessed what the PRINT command does. The PRINT command prints a message onto the screen. The message has to be in quotation marks. You can change the welcome message to anything you'd like, as long as you put it in quotes. Let's try changing it now. Why don't we make the program more friendly and have it greet us by name?

print "Welcome to BASIC-256, Ian!!!"

(You can put your own name in -- Ian is my name) There, that's better. But what if we want the computer to say something else? Let's try adding another line to the program.

print "Welcome to BASIC-256, Ian!!!"
print "How are you today?"

Now, when you run the program, you should see two lines printed out. Adding another line means that the computer runs the first line, and then the second one, in order.

Congratulations! You've finished the first tutorial. By now, you should understand:

  • What a program is
  • What the PRINT command does

Got it so far? Then let's go to the Tutorial Two!

 

Find us on Facebook.    So You Want to Learn to Program?

GPL
BASIC-256 is licensed under the GNU General Public License.
Last modified: 2010-06-10, 10:47

© 2010 Contributors to the BASIC-256 Project

powered by phpSQLiteCMS

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/4039117/html/basic256/templates/b256.tpl:2) in /home/content/17/4039117/html/basic256/cms/includes/exception.inc.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/4039117/html/basic256/templates/b256.tpl:2) in /home/content/17/4039117/html/basic256/cms/includes/exception.inc.php on line 13

Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/4039117/html/basic256/templates/b256.tpl:2) in /home/content/17/4039117/html/basic256/cms/includes/exception.inc.php on line 14
BASIC-256 - Error

BASIC-256

Error

An error occurred while processing this directive.

Message: SQLSTATE[HY000]: General error: 11 database disk image is malformed
Code: HY000
File: /home/content/17/4039117/html/basic256/templates/renejm_accesslog.inc.php
Line: 20