0
answers
1
watching
40
views

Consider the code segment below.

a) Give the final values of variables k, j and count when the code is finished running?

b) How many times the body of the inner loop is executed?

count := 0
For k = 1 to 3
For j = k +1 to 4
count := count + k ⋅ j // the body of the inner loop
End-for
End-for


For unlimited access to Homework Help, a Homework+ subscription is required.

Start filling in the gaps now
Log in