The Procedure
Real Lab Procedure
- Let "m", "n" be the two positive input numbers.
- Calculate "m % n = r".
- Let "m = n and n = r".
- Repeat Steps 2 and 3 until "m % n" is greater than 0.
- GCD = m.
- Finish.

Simulator Procedure
- Enter the input values.
- Click on the Submit button.
- Select the variables from the dropdown list.
- Click on the Finish button or Start button to view the state diagram.
- If you have clicked on the Start button then use Next and Previous button to view the State diagram.
- Click on the Reset button when the State diagram is completed.