Question: sum : = 0 for i = 1 to 4 for j = 1 to i sum : = sum + ( i - j
sum : for i to for j to i sum : sum i j Endfor Endfor a For the iteration of the outer loop where i how many times does the inner loop execute? points b How many times is the variable sum updated in total? points c What is the final value of sum after the entire program runs? points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
