Users can place comments anywhere in the comments by placing a /*
at the start and a */
at the end.
Example: /* This is the proper structure for a comment */
Declaring Variables
Item | Description |
Variable Declaration | Declare internal variables using the following format:
The initial value of declared numerical variables is 0. To declare more than one variable, use a comma
Users can use multiple Users can also define an initial value for the variable when declaring it using the following format:
|
Program Part
In the program part, all program statements except the declaration (variables and parameters) can be used. An example of the most basic statement is the function call, calculation, and storing of the result.
The following program example is composed of basic statements.
var_a = var_a + 1;
var_b = my_function(var_a, 2, 3);
Each statement must end with a semicolon “;”. Each function returns a single result to the caller. The program shown above stores the result of my_function
to var_b
.