Hello experts
The Euclid's Method:
If u is greater then v then the greatest common divisor of u and v is the sum as the greatest common divisor of v and u-v.
Now my question is, how can I apply this method in getting the right answer for the following inputs:
Inputs:
Numerator: 4
Denominator: 6
The result must be:
4/6 = 2/3
Even a simple program will do. Please help. Thanks.
The Euclid's Method:
If u is greater then v then the greatest common divisor of u and v is the sum as the greatest common divisor of v and u-v.
Now my question is, how can I apply this method in getting the right answer for the following inputs:
Inputs:
Numerator: 4
Denominator: 6
The result must be:
4/6 = 2/3
Even a simple program will do. Please help. Thanks.
Comment