Question: 3. (10 points) Consider the Algol 60-style for statements: integer array A(1:12); for i:=1 step 1 until 12 do A(i) = i; /* A is

 3. (10 points) Consider the Algol 60-style for statements: integer array

3. (10 points) Consider the Algol 60-style for statements: integer array A(1:12); for i:=1 step 1 until 12 do A(i) = i; /* A is an array of 12 integers indexed from 1 to 12 */ /* elements of A are initialized to 1..12 */ i:=1;j;= 2; for A(i) = A(j) step A(i) until 22 do begin i:=i+1; j:=j+1; end What are the final values in array A after the above code is executed? Show your work. index A 1 2 3 4 5 6 7 8 9 10 12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!