Professional Documents
Culture Documents
2) Consider the following structure plan and write a program to implement it, where M and N
represent MATLAB variables:
1. Set M = 44 and N = 28
2. While M not equal to N repeat:
While M > N repeat:
Replace Value of M by M - N
While N > M repeat:
Replace value of N by N - M
3. Display M
4. Stop