Ozapell Basic Learn Programming #1

A variable is a symbol representing a quantity.

In computer programming, a variable represents a location in memory where a value is stored.

In Ozapell Basic, there are four simple types of variables. The type of the variable is determined by the data assigned to it.

For example:

X=10

X is a variable assigned the value of 10. X is of the integer type because it is a whole number (doesn’t contain a decimal point). 0 is also an integer. Negative whole numbers such as -1 or -50 are also integers.

Another example:

Y=10.5

Y is a variable assigned the value of 10.5. 10.5 is a floating point number because it contains a decimal point. 0.0 is also a floating point number as long as the decimal point is included. Negative floating point numbers contain a decimal point such as in -1.5 or -50.33.

Another example:

Z=”HELLO”

Z is a variable assigned the text string HELLO. (Note: The quotation marks designate the begin and end of the string. These quotation marks are not included in the final string.)

Finally, the fourth simple type in Ozapell Basic is a boolean. Boolean variables contain either TRUE or FALSE. They are used by logic statements.

Example:

B=TRUE

B is a variable assigned the boolean value of TRUE.

Ozapell Basic on Steam

Here are some videos demonstrating how to start working with Ozapell Basic.

 

 

 

Advertisements
Ozapell Basic Learn Programming #1

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s