The loop is exited when the while expression evaluates to false. The end is required. The else is optional. The name is any valid variable name. Note that the variables declared within a function exist only in the block.
Functions can also recursively call themselves.
Notice that the return result of a function call can be used in an expression, and that local and global variable can share the same name. Note that function parameters and return values CAN NOT be of type intarray . An intarray variable can only be declared in the var section of main or the var section of a function. Entire arrays CAN NOT be assigned, and CAN NOT be used with get and put . Instead, each of the array elements must be assigned, inputted, or outputted individually.