Question: 3- How many times the innermost loop will be iterated if the following algorithm segment is run ? (20p) for k:=1 to 20 for j:=k
3- How many times the innermost loop will be iterated if the following algorithm segment is run ? (20p) for k:=1 to 20 for j:=k to 25 for i=j to 30 [statements in the body of the innermost loop] next i next j next k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
