RosettaCodeData/Task/Write-float-arrays-to-a-text-file/BASIC256/write-float-arrays-to-a-text-file.basic
2023-07-01 13:44:08 -04:00

10 lines
171 B
Text

x$ = "1 2 3 1e11"
x$ = explode(x$, " ")
f = freefile
open f, "filename.txt"
for i = 0 to x$[?]-1
writeline f, int(x$[i]) + chr(9) + round(sqrt(x$[i]),4)
next i
close f