10 LET X = Y + 2 / (B - 2) 20 IF A >= 10 THEN B = 4; 30 IF A >= (10*B)/T THEN B = 4 + 9;
Operator | Name | Example |
+ | Addition | X + 10 |
- | Subtract | X - 10 |
* | Multiply | X * Y |
/ | Division | X / 2 |
% | Modulus | X % 10 |
Operator | Name | Example |
> | Greater than | X > 10 |
< | Less than | X < 10 |
>= | Greater than or equal | X >= 10 |
<= | Less than or equal | X <= 10 |
= | Equal | X = Y |
<> | Not equal | X <> 2 |
Operator | Name | Example |
SIN | Sine function | LET X = SIN(B) |
COS | Cosine function | LET X = COS(B) |
TAN | Tangent function | LET X = TAN(B) |
10 LET P = 3.14 10 LET A = SIN(P) 10 LET B = COS(P) 10 LET C = TAN(3.14) 10 PRINT A 10 PRINT B 10 PRINT C