Use the flowchart to answer the question.
In a flowchart, an arrow starts from an oval labeled “Start” and ends at a rectangle labeled “Let M equals larger number N equals smaller number”. From the rectangle labeled “Let M equals larger number N equals smaller number” an arrow starts and ends at a rectangle labeled “Let R equals remainder of M divided by N”. An arrow starts from the rectangle labeled “Let R equals remainder of M divided by N” and ends at a diamond labeled “Does R equals 0?”. From the diamond two arrows are originated. One from the right corner, labeled “Yes” and one from the bottom corner, labeled “No”. The arrow labeled “Yes” ends at a rectangle labeled “N equals H C F”. The arrow labeled “No” from the bottom of the diamond, ends at a rectangle labeled “Let M equals value of N N equals value of R”. An arrow originated from the rectangle labeled “Let M equals value of N N equals value of R” and ends back to the rectangle labeled “Let R equals remainder of M divided by N”. An arrow starts from the rectangle labeled “N equals H C F” and ends at an oval labeled “Stop”.
Source: PDQ Digital Media Solutions Ltd. Pearson Education Ltd
In 1-2 sentences, explain the purpose and outcome of the iterative control structure.
1 month ago