@dougmack
You caught me now. As previous post I dont think you will get one of these small basics to print in linux (someone bound to prove me wrong). Yabasic will dump a graphics screen to a postscript file, for text best I can suggest is to "print" to a file
Just checked the bwbasic syntax, it is a little different to yabasic, and was nagging a bit. OUTPUT is a bw/gw basic keyword and really should not be used as a variable even in lowercase.
so in bwbasic this should work, the file test.txt will be created.
OPEN "test.txt" FOR OUTPUT AS #1
first = 30
second = 20
result = first*second
PRINT #1 "result = " , result
CLOSE #1
as a note, yabasic compiles really easily to a single file.
for something a bit more ambitious, freebasic works ootb and integrates well with geany, although it has some annoying aspects lprint should work. maybe a candidate for a .rpm