DEFDBL A-Z
CLS
DIM X(20), Z(20)
FOR i = 1 TO 20
X(i) = RND * 10
NEXT
FOR i = 1 TO 20
Z(i) = SQR(ABS(X(i)) + 1)
NEXT
PRINT TAB(10); "X", , SPACE$(10) + "Z"
FOR i = 1 TO 20
PRINT X(i), Z(i)
NEXT
Тестирование выполнено в программе QB64 ( Скачать )
DEFDBL A-Z
CLS
DIM X(20), Z(20)
FOR i = 1 TO 20
X(i) = RND * 10
NEXT
FOR i = 1 TO 20
Z(i) = SQR(ABS(X(i)) + 1)
NEXT
PRINT TAB(10); "X", , SPACE$(10) + "Z"
FOR i = 1 TO 20
PRINT X(i), Z(i)
NEXT
Тестирование выполнено в программе QB64 ( Скачать )