DIM i AS Integer FOR i=1 TO 10 PRINT i; IF i=10 THEN EXIT FOR PRINT ", "; NEXT i