Returns the square root of x.
SQR(x)
x must be greater than or equal to 0.
SQR(x) is computed in single-precision unless the /d switch is used when GW-BASIC is executed.
10 FOR X=10 TO 25 STEP 5 20 PRINT X; SQR(X) 30 NEXT RUN 10 3.162278 15 3.872984 20 4.472136 25 5