Tips for golfing Yabasic
Use Chr$(...) to Print numbers

By default, all numbers printed using Yabasic print with a space following them, and to remove this space while printing characters individually, one may use the formula below.
It is important to note that this only works for printing digits 0 - 9, meaning that this works best for iterating across numbers digit by digit.
...
?Left$(Str$(n),1);
...

Try it online!
However, if the context allows, this can be golfed down to this formula.
...
?Chr$(n+48);
...

Try it online!