1.4
BASIC programming
1.4.1
What is a program?
The X-07 is no more than a calculator if the BASIC language is used as in the
previous section. Of course there is a reason for the BASIC language in the X-07.
In BASIC, each command can be given a line number. Commands with line
numbers are called ''statements''. Statements are not executed immediately when
input. Series of statements are collectively called a "program". For example:
10 REM PROGRAM
+
-
*I
20 INPUT "A, B"; A, B
30 PRINT"A+ B";A+B;
40 PRINT "A-B"; A-B
50 PRINT '"A*B"; A*B;
60 PRINT "A/B"; A/B
In this program, values are read into the variables A and B, and A+ B, A - B,
A*B, and A/B, in other words, addition, subtraction, multiplication, and divi
sion are executed. And results are displayed on the LCD.
To make the X-07 memorize the above program, type,
10
20
REM P -
INPUT "A, B"; A,
RETURN
After typing all the statements, type,
RUN
means depress the RETURN key.)
19
Summary of Contents for X-07
Page 1: ......
Page 2: ......
Page 8: ...1 Learning how to operate the X 07 2 Special functions and peripheral devices 3 Reference m ...
Page 10: ...Learmng how to operate the X 07 ...
Page 11: ...2 ...
Page 63: ......
Page 64: ......
Page 107: ...00 ...
Page 108: ......
Page 145: ...136 Instructions Others BEEP MOTOR REM Functions ABS FIX HEX INT SGN START TAB ...
Page 146: ......
Page 147: ......
Page 149: ......