SECTION 46.2: FOR-LOOPS WITH SAME CONTROL-VARIABLE NESTED DYNAMICALLY WITH GOSUB. THIS SECTION TESTS THAT A GOSUB ROUTINE CAN BE EXECUTED FROM WITHIN A FOR-BLOCK AND THAT THE SUBROUTINE MAY ITSELF CONTAIN A FOR-BLOCK. IF THE TWO FOR-BLOCKS USE THE SAME CONTROL-VARIABLE, THE ORIGINAL VALUE IS LOST. SECTION 46.3 CONTROL-STATEMENT JUMPS OUT OF FOR-BLOCK. THIS SECTION TESTS THAT YOU CAN JUMP OUT OF A FOR-BLOCK AND THAT THE CONTROL-VARIABLE RETAINS ITS VALUE WHEN THIS HAPPENS. BEGIN TEST. LOOP IS: FOR I1= 33 TO 66 STEP 4 10 PRINT "PROGRAM FILE 47: INCREMENT IN THE STEP CLAUSE OF THE" 20 PRINT"❗ FOR-STATEMENT DEFAULTS TO A VALUE OF ONE." 30 PRINT " ANSI STANDARD 11.2, 11.4" 40 PRINT 50 PRINT "SECTION 47.1: INCREMENT IN THE STEP CLAUSE OF THE" 60 PRINT " FOR-STATEMENT DEFAULTS TO A VALUE OF ONE." 70 PRINT ** |