10 PRINT "X | Y"20 FOR X = -7 TO 3 STEP 1.530 Y = ABS(X) + X40 PRINT X; " | "; Y50 NEXT X
Результат:X | Y-7 | 0-5.5 | -1.5-4 | -2-2.5 | -1.5-1 | 00.5 | 12 | 43.5 | 6.5
10 PRINT "X | Y"
20 FOR X = -7 TO 3 STEP 1.5
30 Y = ABS(X) + X
40 PRINT X; " | "; Y
50 NEXT X
Результат:
X | Y
-7 | 0
-5.5 | -1.5
-4 | -2
-2.5 | -1.5
-1 | 0
0.5 | 1
2 | 4
3.5 | 6.5