DON’T USE RECURSIVELY CALL!
Urgent Please
As coding language was not specified in question i have written this code in Python 3
Code using Euclid Euclid’s algorithm without using recursive calls:-
def GCD(m,n):
if(n==0):
return abs(m)
if(m<n):
(m,n)=(n,m)
while(m%n !=0):
(m,n)=(n,m%n)
return(n)
Sample input/output:-
Get Answers For Free
Most questions answered within 1 hours.