Question: Accept two positive integers M and N as input. There are two cases to consider: ( 1 ) If M < N , then print
Accept two positive integers M and N as input. There are two cases to consider:
If M N then print M as output.
If M N subtract N from M Call the difference M If M N then subtract N from M and call the difference M Keep doing this operation until you reach a value k such that, Mk N You have to print the value of Mk as output. In Python
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
