10 tron 20 i = 11 30 for j = 1 to 2 40 k = i + 10 50 print i; j; k 60 i = i + 10 70 next 80 troff 90 endproduces the output
[10][20][30][40] 11 1 21 [50][60][30][40] 21 2 31 [50][60][70]This example uses tron to trace execution of a loop. The numbers in brackets are line numbers which constitute the trace. All other output is produced by the print statement in the program.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber